From d37d6f9d39db5b745b3636159f7efa31cf5cd47f Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 4 Aug 2009 16:51:19 +0100 Subject: [PATCH] forcing scheduling calculation --- .../solidWallMixedTemperatureCoupledFvPatchScalarField.C | 4 +++- .../directMappedFixedValueFvPatchField.C | 16 ++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallMixedTemperatureCoupled/solidWallMixedTemperatureCoupledFvPatchScalarField.C b/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallMixedTemperatureCoupled/solidWallMixedTemperatureCoupledFvPatchScalarField.C index 5bec56731..a2940ef12 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallMixedTemperatureCoupled/solidWallMixedTemperatureCoupledFvPatchScalarField.C +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallMixedTemperatureCoupled/solidWallMixedTemperatureCoupledFvPatchScalarField.C @@ -208,6 +208,9 @@ void Foam::solidWallMixedTemperatureCoupledFvPatchScalarField::updateCoeffs() patch().patch() ); const polyMesh& nbrMesh = mpp.sampleMesh(); + // Force recalculation of mapping and schedule + const mapDistribute& distMap = mpp.map(); + (void)distMap.schedule(); tmp intFld = patchInternalField(); @@ -217,7 +220,6 @@ void Foam::solidWallMixedTemperatureCoupledFvPatchScalarField::updateCoeffs() // to be updated the first time round the iteration (i.e. when // switching regions) but unfortunately we don't have this information. - const mapDistribute& distMap = mpp.map(); const fvPatch& nbrPatch = refCast ( nbrMesh diff --git a/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C index d85e393fd..e62987148 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C @@ -114,12 +114,12 @@ directMappedFixedValueFvPatchField::directMappedFixedValueFvPatchField << exit(FatalError); } - // Force calculation of schedule (uses parallel comms) - const directMappedPatchBase& mpp = refCast - ( - this->patch().patch() - ); - (void)mpp.map().schedule(); + //// Force calculation of schedule (uses parallel comms) + //const directMappedPatchBase& mpp = refCast + //( + // this->patch().patch() + //); + //(void)mpp.map().schedule(); } @@ -166,6 +166,10 @@ void directMappedFixedValueFvPatchField::updateCoeffs() directMappedFixedValueFvPatchField::patch().patch() ); const mapDistribute& distMap = mpp.map(); + + // Force recalculation of schedule + (void)distMap.schedule(); + const fvMesh& nbrMesh = refCast(mpp.sampleMesh()); const word& fldName = this->dimensionedInternalField().name(); -- 2.11.4.GIT