diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C index c6e55ef2a0..3894a5c3e4 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C @@ -53,8 +53,12 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField fixedGradientFvPatchScalarField(p, iF), curTimeIndex_(-1) { + // Map value. Set unmapped values and overwrite with mapped ptf + fvPatchField::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); }