mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2672 from akva2/fix_harmless_ubsan
changed: delay deck dereference
This commit is contained in:
commit
16a599684d
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user