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:
parent
0dfcb8f411
commit
44bec2d7db
@ -279,7 +279,6 @@ private:
|
|||||||
const auto& gridView = vanguard.gridView();
|
const auto& gridView = vanguard.gridView();
|
||||||
const auto& elementMapper = simulator_.model().elementMapper();
|
const auto& elementMapper = simulator_.model().elementMapper();
|
||||||
const auto& eclState = simulator_.vanguard().eclState();
|
const auto& eclState = simulator_.vanguard().eclState();
|
||||||
const auto& deck = simulator_.vanguard().deck();
|
|
||||||
const Opm::SimulationConfig& simConfig = eclState.getSimulationConfig();
|
const Opm::SimulationConfig& simConfig = eclState.getSimulationConfig();
|
||||||
const auto& thpres = simConfig.getThresholdPressure();
|
const auto& thpres = simConfig.getThresholdPressure();
|
||||||
|
|
||||||
@ -334,6 +333,7 @@ private:
|
|||||||
|
|
||||||
if (enableExperiments) {
|
if (enableExperiments) {
|
||||||
// apply threshold pressures accross faults (experimental!)
|
// apply threshold pressures accross faults (experimental!)
|
||||||
|
const auto& deck = simulator_.vanguard().deck();
|
||||||
if (deck.hasKeyword("THPRESFT"))
|
if (deck.hasKeyword("THPRESFT"))
|
||||||
extractThpresft_(deck.getKeyword("THPRESFT"));
|
extractThpresft_(deck.getKeyword("THPRESFT"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user