mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
SimulatorFullyImplicitBlackoilOutput: warn when end of file was reached.
This commit is contained in:
@@ -271,9 +271,8 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
OPM_THROW(std::logic_error,"cast to BlackoilState failed");
|
OPM_THROW(std::logic_error,"cast to BlackoilState failed");
|
||||||
const WellStateFullyImplicitBlackoil& boWellState =
|
const WellStateFullyImplicitBlackoil& boWellState = static_cast< const WellStateFullyImplicitBlackoil& > (wellState);
|
||||||
static_cast< const WellStateFullyImplicitBlackoil& > (wellState);
|
backupfile_ << boWellState;
|
||||||
backupfile_ << boWellState;
|
|
||||||
/*
|
/*
|
||||||
const WellStateFullyImplicitBlackoil* boWellState =
|
const WellStateFullyImplicitBlackoil* boWellState =
|
||||||
dynamic_cast< const WellStateFullyImplicitBlackoil* > (&wellState);
|
dynamic_cast< const WellStateFullyImplicitBlackoil* > (&wellState);
|
||||||
@@ -325,7 +324,13 @@ namespace Opm
|
|||||||
std::cout << "Restored step " << timer.reportStepNum() << " at day "
|
std::cout << "Restored step " << timer.reportStepNum() << " at day "
|
||||||
<< unit::convert::to(timer.simulationTimeElapsed(),unit::day) << std::endl;
|
<< unit::convert::to(timer.simulationTimeElapsed(),unit::day) << std::endl;
|
||||||
|
|
||||||
if( readReportStep == reportStep || ! restorefile ) {
|
if( readReportStep == reportStep ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if the stream is not valid anymore we just use the last state read
|
||||||
|
if( ! restorefile ) {
|
||||||
|
std::cerr << "Reached EOF, using last state read!" << std::endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user