Unsupported keywords write negative values

This provides easier-to-identify behaviour than simply writing zero and
going on its merry way.
This commit is contained in:
Jørgen Kvalsvik 2016-04-27 09:59:21 +02:00
parent a0706a32af
commit 107015a57c

View File

@ -454,7 +454,7 @@ inline double well_keywords( const smspec_node_type* node,
case E::UNSUPPORTED:
default:
return 0;
return -1;
}
}
@ -544,7 +544,7 @@ inline double group_keywords( const smspec_node_type* node,
case E::GGOR: return gor( rate( rt::gas ), rate( rt::oil ) );
default:
return 0;
return -1;
}
}