Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion opm/simulators/flow/GenericCpGridVanguard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ doLoadBalance_(const Dune::EdgeWeightMethod edgeWeightsMethod,
: std::vector<Well>{};

const auto& possibleFutureConnections = schedule.getPossibleFutureConnections();
// Mechanics couples cells across zero-transmissibility faces,
// so the overlap layer must not be pruned by transmissibility
// in mechanical runs (same reasoning as for thermal runs).
const bool useTransToFilterOverlap =
!(eclState1.getSimulationConfig().isThermal() ||
eclState1.getSimulationConfig().isTemp());
eclState1.getSimulationConfig().isTemp() ||
eclState1.runspec().mech());
// Distribute the grid and switch to the distributed view.
if (mpiSize > 1) {
this->distributeGrid(edgeWeightsMethod, ownersFirst,
Expand Down
11 changes: 9 additions & 2 deletions opm/simulators/utils/readDeck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,17 +383,24 @@ namespace {
eclipseState = createEclipseState(comm, deck);
}

// A fracture model reads its seeds out of the deck during the run, not
// only at setup, so a FRAC run has to retain the Schedule keywords
// whatever the general setting says. Decided here rather than by the
// caller because it needs the parsed RUNSPEC.
const auto keepScheduleKeywords =
keepKeywords || eclipseState->runspec().frac();

if (eclipseState->getInitConfig().restartRequested()) {
loadObjectsFromRestart(deck, parser, *parseContext,
initFromRestart, outputInterval,
lowActionParsingStrictness, keepKeywords,
lowActionParsingStrictness, keepScheduleKeywords,
*eclipseState, std::move(python),
schedule, udqState, actionState, wtestState,
errorGuard);
}
else {
createNonRestartDynamicObjects(deck, *eclipseState, *parseContext,
lowActionParsingStrictness, keepKeywords,
lowActionParsingStrictness, keepScheduleKeywords,
std::move(python),
schedule, udqState, actionState, wtestState,
errorGuard, slaveMode);
Expand Down