mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
using createConstantZero instead of createBlank
the content for createBlank is not initialized, which causes undefined behavoir.
This commit is contained in:
parent
4c105d7672
commit
ab839896b6
@ -64,7 +64,7 @@ inline EvalWell zeroIfNanInf(const EvalWell& value) {
|
|||||||
|
|
||||||
using Toolbox = MathToolbox<EvalWell>;
|
using Toolbox = MathToolbox<EvalWell>;
|
||||||
|
|
||||||
return nan_or_inf ? Toolbox::createBlank(value) : value;
|
return nan_or_inf ? Toolbox::createConstantZero(value) : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user