BUG: fixedPressure: map value as well as gradient

This commit is contained in:
mattijs
2013-09-11 13:17:51 +01:00
parent f6673d4bb5
commit b0403a268e

View File

@ -53,8 +53,12 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField
fixedGradientFvPatchScalarField(p, iF),
curTimeIndex_(-1)
{
// Map value. Set unmapped values and overwrite with mapped ptf
fvPatchField<scalar>::operator=(patchInternalField());
map(ptf, mapper);
// Map gradient. Set unmapped values and overwrite with mapped ptf
gradient() = 0.0;
map(gradient(), mapper);
gradient().map(ptf.gradient(), mapper);
}