typos and minor changes.

This commit is contained in:
Robert K
2015-02-11 13:26:57 +01:00
parent 61144a73af
commit 0f20e187a6
2 changed files with 8 additions and 10 deletions

View File

@@ -161,8 +161,9 @@ namespace Opm {
// read id and compare with object
int id = -1;
readValue( in, id );
if( id != objectId( state ) )
OPM_THROW(std::logic_error,"backup-restore object type missmatch");
if( id != objectId( state ) ) {
OPM_THROW(std::logic_error,"backup-restore object type mismatch");
}
}
}
@@ -233,11 +234,11 @@ namespace Opm {
// check id of stored object
checkObjectId( in, state );
// backup simulator state
// restore simulator state
SimulatorState& simstate = static_cast< SimulatorState& > (state);
in >> simstate;
// backup additional blackoil state variables
// restore additional blackoil state variables
readContainer( in, state.surfacevol() );
readContainer( in, state.gasoilratio() );
readContainer( in, state.rv() );