finishing the function addWellContributions for StandardWellV

This commit is contained in:
Kai Bao
2018-12-06 15:53:30 +01:00
parent 612ac74b89
commit 525caad508
3 changed files with 62 additions and 5 deletions

View File

@@ -62,7 +62,9 @@ inline EvalWell zeroIfNanInf(const EvalWell& value) {
OpmLog::warning("NAN_OR_INF_VFP_EVAL", "NAN or INF Evalution encountered during VFP calculation, the Evalution is set to zero");
}
return nan_or_inf ? 0.0 * value : value;
using Toolbox = MathToolbox<EvalWell>;
return nan_or_inf ? Toolbox::createBlank(value) : value;
}