diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C index 0f21637953813fc8188241451707269e69d51797..c6e55ef2a060131e2b591bcc772b352257119c5e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C @@ -50,9 +50,12 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField const fvPatchFieldMapper& mapper ) : - fixedGradientFvPatchScalarField(ptf, p, iF, mapper), + fixedGradientFvPatchScalarField(p, iF), curTimeIndex_(-1) -{} +{ + gradient() = 0.0; + map(gradient(), mapper); +} Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField