mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1460 from lars-petter-hauge/restart_timestep
Only load wells that have simulated data
This commit is contained in:
commit
8965fc3138
@ -133,7 +133,11 @@ namespace Opm
|
|||||||
const auto& defunct_well_names = ebosSimulator_.vanguard().defunctWellNames();
|
const auto& defunct_well_names = ebosSimulator_.vanguard().defunctWellNames();
|
||||||
WellsManager wellsmanager(eclState(),
|
WellsManager wellsmanager(eclState(),
|
||||||
schedule(),
|
schedule(),
|
||||||
eclState().getInitConfig().getRestartStep(),
|
// The restart step value is used to identify wells present at the given
|
||||||
|
// time step. Wells that are added at the same time step as RESTART is initiated
|
||||||
|
// will not be present in a restart file. Use the previous time step to retrieve
|
||||||
|
// wells that have information written to the restart file.
|
||||||
|
std::max(eclState().getInitConfig().getRestartStep() - 1, 0),
|
||||||
Opm::UgGridHelpers::numCells(grid()),
|
Opm::UgGridHelpers::numCells(grid()),
|
||||||
Opm::UgGridHelpers::globalCell(grid()),
|
Opm::UgGridHelpers::globalCell(grid()),
|
||||||
Opm::UgGridHelpers::cartDims(grid()),
|
Opm::UgGridHelpers::cartDims(grid()),
|
||||||
|
@ -439,7 +439,11 @@ namespace Opm
|
|||||||
DynamicListEconLimited dummy_list_econ_limited;
|
DynamicListEconLimited dummy_list_econ_limited;
|
||||||
WellsManager wellsmanager(eclipseState_,
|
WellsManager wellsmanager(eclipseState_,
|
||||||
schedule_,
|
schedule_,
|
||||||
eclipseState_.getInitConfig().getRestartStep(),
|
// The restart step value is used to identify wells present at the given time step.
|
||||||
|
// Wells that are added at the same time step as RESTART is initiated will not be
|
||||||
|
// present in a restart file. Use the previous time step to retrieve wells
|
||||||
|
// that have information written to the restart file.
|
||||||
|
std::max(eclipseState_.getInitConfig().getRestartStep() - 1, 0),
|
||||||
Opm::UgGridHelpers::numCells(grid),
|
Opm::UgGridHelpers::numCells(grid),
|
||||||
Opm::UgGridHelpers::globalCell(grid),
|
Opm::UgGridHelpers::globalCell(grid),
|
||||||
Opm::UgGridHelpers::cartDims(grid),
|
Opm::UgGridHelpers::cartDims(grid),
|
||||||
|
Loading…
Reference in New Issue
Block a user