mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: delay deck dereference
this was harmless unless enableExperiments was given, since the deck ref is not used otherwise, but it caused an UBSAN issue when run in parallel.
This commit is contained in:
@@ -279,7 +279,6 @@ private:
|
||||
const auto& gridView = vanguard.gridView();
|
||||
const auto& elementMapper = simulator_.model().elementMapper();
|
||||
const auto& eclState = simulator_.vanguard().eclState();
|
||||
const auto& deck = simulator_.vanguard().deck();
|
||||
const Opm::SimulationConfig& simConfig = eclState.getSimulationConfig();
|
||||
const auto& thpres = simConfig.getThresholdPressure();
|
||||
|
||||
@@ -334,6 +333,7 @@ private:
|
||||
|
||||
if (enableExperiments) {
|
||||
// apply threshold pressures accross faults (experimental!)
|
||||
const auto& deck = simulator_.vanguard().deck();
|
||||
if (deck.hasKeyword("THPRESFT"))
|
||||
extractThpresft_(deck.getKeyword("THPRESFT"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user