add checkFinite to StandardWellPrimaryVariables

This commit is contained in:
Arne Morten Kvarving
2022-11-09 12:18:28 +01:00
parent 999d4c6be9
commit 4bbcdf0646
3 changed files with 16 additions and 9 deletions

View File

@@ -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);
}