mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add checkFinite to StandardWellPrimaryVariables
This commit is contained in:
@@ -961,11 +961,7 @@ namespace Opm
|
||||
|
||||
updateExtraPrimaryVariables(dwells);
|
||||
|
||||
for (double v : this->primary_variables_.value_) {
|
||||
if(!isfinite(v))
|
||||
OPM_DEFLOG_THROW(NumericalIssue, "Infinite primary variable after newton update well: " << this->name(), deferred_logger);
|
||||
}
|
||||
|
||||
this->primary_variables_.checkFinite(deferred_logger);
|
||||
}
|
||||
|
||||
|
||||
@@ -2038,10 +2034,8 @@ namespace Opm
|
||||
if constexpr (Base::has_polymermw) {
|
||||
this->primary_variables_.updatePolyMW(well_state);
|
||||
}
|
||||
for (double v : this->primary_variables_.value_) {
|
||||
if(!isfinite(v))
|
||||
OPM_DEFLOG_THROW(NumericalIssue, "Infinite primary variable after update from wellState well: " << this->name(), deferred_logger);
|
||||
}
|
||||
|
||||
this->primary_variables_.checkFinite(deferred_logger);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user