From c7cd331617c28c13219fa59ebf9112380a0fb968 Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Fri, 13 Sep 2013 00:10:57 +0100 Subject: [PATCH] fixedFluxPressureFvPatchScalarField: Avoid calling evaluate() in the mapping constructor as it call updateCoeffs() --- .../fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C index 2df4bf7ffb5..ac4b3feaa3c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C @@ -62,7 +62,10 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField // Evaluate the value field from the gradient if the internal field is valid if (&iF && iF.size()) { - evaluate(); + scalarField::operator= + ( + patchInternalField() + gradient()/patch().deltaCoeffs() + ); } } -- GitLab