diff --git a/applications/utilities/parallelProcessing/redistributePar/Make/options b/applications/utilities/parallelProcessing/redistributePar/Make/options index 08d24a07f75ec9cfff77d2bfe14ca89ab0139f5f..189902467f7ab2777e969adce463624c76ee1e15 100644 --- a/applications/utilities/parallelProcessing/redistributePar/Make/options +++ b/applications/utilities/parallelProcessing/redistributePar/Make/options @@ -4,7 +4,8 @@ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ - -I$(LIB_SRC)/dynamicMesh/lnInclude + -I$(LIB_SRC)/dynamicMesh/lnInclude \ + -I$(LIB_SRC)/mesh/snappyHexMesh/lnInclude EXE_LIBS = \ -lfiniteVolume \ @@ -14,4 +15,5 @@ EXE_LIBS = \ -ldecompose \ -lmeshTools \ -llagrangian \ - -ldynamicMesh + -ldynamicMesh \ + -lsnappyHexMesh diff --git a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C index 6dc98535c0af7cc252368970e1eaa6a612af1e23..3e2e351ddda3f78bd6d2416943259f450ebf70cf 100644 --- a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -81,6 +81,7 @@ Usage #include "parLagrangianRedistributor.H" #include "unmappedPassiveParticleCloud.H" #include "hexRef8Data.H" +#include "meshRefinement.H" #include "pointFields.H" using namespace Foam; @@ -1246,14 +1247,18 @@ autoPtr<mapDistributePolyMesh> redistributeAndWrite { runTime.TimePaths::caseName() = proc0CaseName; } + // Make sure all processors have valid data (since only some will // read) refData.sync(io); - // Distribute refData.distribute(map); + + // Now we've read refinement data we can remove it + meshRefinement::removeFiles(mesh); + if (nDestProcs == 1) { if (Pstream::master())