Skip to content
Snippets Groups Projects
Commit 527fac8b authored by sergio's avatar sergio
Browse files

BUG: Changing mapper constructor due to uninitialized values of

refValues_
parent 97cf2b8a
Branches
Tags
No related merge requests found
......@@ -54,7 +54,16 @@ surfaceNormalFixedValueFvPatchVectorField
fixedValueFvPatchVectorField(p, iF),
refValue_(ptf.refValue_, mapper)
{
fvPatchVectorField::operator=(refValue_*patch().nf());
// Note: calculate product only on ptf to avoid multiplication on
// unset values in reconstructPar.
fixedValueFvPatchVectorField::operator=
(
vectorField
(
ptf.refValue_*ptf.patch().nf(),
mapper
)
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment