diff --git a/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C b/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C index 6b954fac91..7679e08ed3 100644 --- a/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C +++ b/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C @@ -69,7 +69,7 @@ Usage #include "faceCoupleInfo.H" #include "fvMeshAdder.H" #include "polyTopoChange.H" -#include "extrapolatedCalculatedFvPatchFields.H" +#include "zeroGradientFvPatchFields.H" #include "topoSet.H" #include "regionProperties.H" #include "fvMeshTools.H" @@ -399,8 +399,8 @@ void writeDistribution << cellDecomposition.objectRelPath() << " for use in manual decomposition." << endl; - // Write as volScalarField for postprocessing. Change time to 0 - // if was 'constant' + // Write as volScalarField for postprocessing. + // Change time to 0 if was 'constant' { const scalar oldTime = runTime.value(); const label oldIndex = runTime.timeIndex(); @@ -421,8 +421,8 @@ void writeDistribution false ), masterMesh, - dimensionedScalar(dimless, Zero), - extrapolatedCalculatedFvPatchScalarField::typeName + dimensionedScalar("cellDist", dimless, -1), + zeroGradientFvPatchScalarField::typeName ); forAll(cellDecomposition, celli) diff --git a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C index d93931ef7a..36643487d6 100644 --- a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -414,7 +414,7 @@ void writeDecomposition mesh.time().timeName(), mesh, IOobject::NO_READ, - IOobject::AUTO_WRITE, + IOobject::NO_WRITE, false // do not register ), mesh, @@ -422,9 +422,9 @@ void writeDecomposition zeroGradientFvPatchScalarField::typeName ); - forAll(procCells, cI) + forAll(procCells, celli) { - procCells[cI] = decomp[cI]; + procCells[celli] = decomp[celli]; } procCells.correctBoundaryConditions();