From 22a4123906e8ccf4c87f4cb3c1cbd53e398d7beb Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 13 Sep 2013 11:01:35 +0100 Subject: [PATCH] BUG: fixedFluxPressure: do not use deltaCoeffs in mapping constructor --- .../fixedFluxPressureFvPatchScalarField.C | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C index ac4b3feaa3..43543c7125 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C @@ -59,14 +59,17 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField gradient() = 0.0; gradient().map(ptf.gradient(), mapper); - // Evaluate the value field from the gradient if the internal field is valid - if (&iF && iF.size()) + // Unfortunately we cannot use the deltaCoeffs in a mapper constructor + // since this triggers AMI construction which is a problem in decomposing + // cases (the individual processor does not make sense) + // So for now map the values + + if (&iF) { - scalarField::operator= - ( - patchInternalField() + gradient()/patch().deltaCoeffs() - ); + scalarField::operator=(patchInternalField()); } + map(ptf, mapper); + }