diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/Make/files b/applications/utilities/parallelProcessing/redistributeMeshPar/Make/files deleted file mode 100644 index c96d0406ba..0000000000 --- a/applications/utilities/parallelProcessing/redistributeMeshPar/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -redistributeMeshPar.C - -EXE = $(FOAM_APPBIN)/redistributeMeshPar diff --git a/applications/utilities/parallelProcessing/redistributePar/Make/files b/applications/utilities/parallelProcessing/redistributePar/Make/files new file mode 100644 index 0000000000..ce0b6760d4 --- /dev/null +++ b/applications/utilities/parallelProcessing/redistributePar/Make/files @@ -0,0 +1,3 @@ +redistributePar.C + +EXE = $(FOAM_APPBIN)/redistributePar diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/Make/options b/applications/utilities/parallelProcessing/redistributePar/Make/options similarity index 100% rename from applications/utilities/parallelProcessing/redistributeMeshPar/Make/options rename to applications/utilities/parallelProcessing/redistributePar/Make/options diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C similarity index 99% rename from applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C rename to applications/utilities/parallelProcessing/redistributePar/redistributePar.C index e8522fa18b..5eaff912ef 100644 --- a/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see . Application - redistributeMeshPar + redistributePar Description Redistributes existing decomposed mesh and fields according to the current @@ -42,7 +42,7 @@ Description cp -r constant processor0 # Distribute - mpirun -np ddd redistributeMeshPar -parallel + mpirun -np ddd redistributePar -parallel \endverbatim \*---------------------------------------------------------------------------*/ diff --git a/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolate.C b/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolate.C index 2e5f2345a7..1e0aa90e41 100644 --- a/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolate.C +++ b/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolate.C @@ -235,7 +235,11 @@ tmp > volPointInterpolation::flatBoundaryField { label bFaceI = bm[patchI].patch().start() - mesh.nInternalFaces(); - if (!isA(bm[patchI]) && !bm[patchI].coupled()) + if + ( + !isA(bm[patchI]) + && !vf.boundaryField()[patchI].coupled() + ) { SubList ( diff --git a/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolation.C b/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolation.C index c4ed18d3e3..cb47e0a101 100644 --- a/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolation.C +++ b/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolation.C @@ -31,6 +31,8 @@ License #include "coupledPointPatchFields.H" #include "pointConstraint.H" +#include "surfaceFields.H" + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam @@ -75,11 +77,19 @@ void volPointInterpolation::calcBoundaryAddressing() const polyBoundaryMesh& pbm = mesh().boundaryMesh(); + // Get precalculated volField only so we can use coupled() tests for + // cyclicAMI + const surfaceScalarField& magSf = mesh().magSf(); + forAll(pbm, patchI) { const polyPatch& pp = pbm[patchI]; - if (!isA(pp) && !pp.coupled()) + if + ( + !isA(pp) + && !magSf.boundaryField()[patchI].coupled() + ) { label bFaceI = pp.start()-mesh().nInternalFaces(); diff --git a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun index 4959242f82..9a2202867e 100755 --- a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun +++ b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun @@ -25,7 +25,7 @@ cp system/decomposeParDict-4proc system/decomposeParDict # Unset floating point trapping since creating processor directories unset FOAM_SIGFPE unset FOAM_SETNAN -runParallel redistributeMeshPar 4 -overwrite +runParallel redistributePar 4 -overwrite runParallel renumberMesh 4 -overwrite # Add wildcard entries for meshes patches since not preserved