mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
BlackoilOutputWriter: fix restore when last step is selected.
This commit is contained in:
parent
4b7440ad78
commit
c846418446
@ -331,11 +331,17 @@ namespace Opm
|
||||
break;
|
||||
}
|
||||
|
||||
// try to read next report step
|
||||
restorefile.read( (char *) &reportStep, sizeof(int) );
|
||||
|
||||
// if read failed, exit loop
|
||||
if( ! restorefile ) {
|
||||
break;
|
||||
}
|
||||
|
||||
// next step
|
||||
timer.advance();
|
||||
|
||||
// read next report step
|
||||
restorefile.read( (char *) &reportStep, sizeof(int) );
|
||||
if( timer.reportStepNum() != reportStep ) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user