BUG: Changing mapper constructor due to uninitialized values of

refValues_
This commit is contained in:
sergio
2012-02-21 11:06:03 +00:00
parent 97cf2b8a8d
commit 527fac8b69

View File

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