mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-29 18:47:55 -05:00
Allow flow to continue with --sched-restart=false
This commit is contained in:
@@ -373,8 +373,6 @@ int main(int argc, char** argv)
|
|||||||
const bool init_from_restart_file = !EWOMS_GET_PARAM(PreTypeTag, bool, SchedRestart);
|
const bool init_from_restart_file = !EWOMS_GET_PARAM(PreTypeTag, bool, SchedRestart);
|
||||||
const auto& init_config = eclipseState->getInitConfig();
|
const auto& init_config = eclipseState->getInitConfig();
|
||||||
if (init_config.restartRequested() && init_from_restart_file) {
|
if (init_config.restartRequested() && init_from_restart_file) {
|
||||||
throw std::logic_error("Sorry - the ability to initialize wells and groups from the restart file is currently not ready");
|
|
||||||
|
|
||||||
int report_step = init_config.getRestartStep();
|
int report_step = init_config.getRestartStep();
|
||||||
const auto& rst_filename = eclipseState->getIOConfig().getRestartFileName( init_config.getRestartRootName(), report_step, false );
|
const auto& rst_filename = eclipseState->getIOConfig().getRestartFileName( init_config.getRestartRootName(), report_step, false );
|
||||||
Opm::EclIO::ERst rst_file(rst_filename);
|
Opm::EclIO::ERst rst_file(rst_filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user