diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/Make/files b/applications/utilities/parallelProcessing/redistributeMeshPar/Make/files deleted file mode 100644 index c96d0406ba110b3e312419edc690c91ee5e83336..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..ce0b6760d450aa3779b1ddb3cdd766d53048e14f --- /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 e8522fa18b8eec8a35e046e37619d1ab0dc5ee66..5eaff912ef31ea5a9d1122fbbb9cbce4f0beb63d 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 <http://www.gnu.org/licenses/>. 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 2e5f2345a7f8e6683094d3b93bf5459ba1f153cd..1e0aa90e4109ca4437d1703eed90973a84fd3380 100644 --- a/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolate.C +++ b/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolate.C @@ -235,7 +235,11 @@ tmp<Field<Type> > volPointInterpolation::flatBoundaryField { label bFaceI = bm[patchI].patch().start() - mesh.nInternalFaces(); - if (!isA<emptyFvPatch>(bm[patchI]) && !bm[patchI].coupled()) + if + ( + !isA<emptyFvPatch>(bm[patchI]) + && !vf.boundaryField()[patchI].coupled() + ) { SubList<Type> ( diff --git a/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolation.C b/src/finiteVolume/interpolation/volPointInterpolation/volPointInterpolation.C index c4ed18d3e3564a038c6dbbdf154d02d24c07ce2f..cb47e0a101c8dd554968c4e9ec5875776dcdfd5c 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<emptyPolyPatch>(pp) && !pp.coupled()) + if + ( + !isA<emptyPolyPatch>(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 4959242f82ce1350389b70ae6a7e879dd8467a99..9a2202867e0aa8dd1fccc83ac7173f4f80cfc10c 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