Chaning to new TUNING semantics (opm-common pr3522)

This commit is contained in:
Vegard Kippe 2023-05-12 13:09:32 +02:00
parent 029e3c8616
commit 65f73f5462
2 changed files with 5 additions and 9 deletions

View File

@ -1708,11 +1708,9 @@ namespace Opm {
void updateTUNING(const Tuning& tuning) { void updateTUNING(const Tuning& tuning) {
if (tuning.XXXMBE_has_nondefault_value) { param_.tolerance_mb_ = tuning.XXXMBE;
param_.tolerance_mb_ = tuning.XXXMBE; if ( terminal_output_ ) {
if ( terminal_output_ ) { OpmLog::debug(fmt::format("Setting BlackoilModelEbos mass balance limit (XXXMBE) to {:.2e}", tuning.XXXMBE));
OpmLog::debug(fmt::format("Setting BlackoilModelEbos mass balance limit (XXXMBE) to {:.2e}", tuning.XXXMBE));
}
} }
} }

View File

@ -322,11 +322,9 @@ public:
} }
void updateTUNING(const Tuning& tuning) { void updateTUNING(const Tuning& tuning) {
if (tuning.XXXMBE_has_nondefault_value) { modelParam_.tolerance_mb_ = tuning.XXXMBE;
modelParam_.tolerance_mb_ = tuning.XXXMBE; if (terminalOutput_) {
if (terminalOutput_) {
OpmLog::debug(fmt::format("Setting SimulatorFullyImplicitBlackoilEbos mass balance limit (XXXMBE) to {:.2e}", tuning.XXXMBE)); OpmLog::debug(fmt::format("Setting SimulatorFullyImplicitBlackoilEbos mass balance limit (XXXMBE) to {:.2e}", tuning.XXXMBE));
}
} }
} }