diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/Make/options b/applications/utilities/parallelProcessing/redistributeMeshPar/Make/options index 05d603887ae46ae67c32b141d860c8f155a6dec7..a23979358b7e2662728d21ed54c8ffabeeacfd5c 100644 --- a/applications/utilities/parallelProcessing/redistributeMeshPar/Make/options +++ b/applications/utilities/parallelProcessing/redistributeMeshPar/Make/options @@ -6,6 +6,7 @@ EXE_INC = \ EXE_LIBS = \ -lfiniteVolume \ + -lgenericPatchFields \ -ldecompositionMethods \ -L$(FOAM_LIBBIN)/dummy -lptscotchDecomp \ -lmeshTools \ diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C b/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C index 18ecebece9822cbce4d3205ca1327686b4a76e97..b870e9efab81f41db80cb6143067648d9d36395b 100644 --- a/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C +++ b/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C @@ -87,12 +87,6 @@ autoPtr<fvMesh> createMesh { // Create dummy mesh. Only used on procs that don't have mesh. - // Switch timeStamp checking to one which does not do any - // parallel sync - regIOobject::fileCheckTypes oldCheckType = - regIOobject::fileModificationChecking; - regIOobject::fileModificationChecking = regIOobject::timeStamp; - { IOdictionary fvSolution ( @@ -146,8 +140,6 @@ autoPtr<fvMesh> createMesh Pout<< "Writing dummy mesh to " << dummyMesh.polyMesh::objectPath() << endl; dummyMesh.write(); - - regIOobject::fileModificationChecking = oldCheckType; } Pout<< "Reading mesh from " << io.objectPath() << endl; @@ -569,8 +561,13 @@ int main(int argc, char *argv[]) mkDir(args.path()); } + // Switch timeStamp checking to one which does not do any + // parallel sync for same reason + regIOobject::fileModificationChecking = regIOobject::timeStamp; + # include "createTime.H" + word regionName = polyMesh::defaultRegion; fileName meshSubDir; diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions index d259693f360d7e11c99858a55cece76aa1e1a831..20a9cd080c10cc036be9a38fbe24b7543808e55c 100644 --- a/bin/tools/RunFunctions +++ b/bin/tools/RunFunctions @@ -57,8 +57,10 @@ runParallel() then echo "$APP_RUN already run on $PWD: remove log file to run" else - echo "Running $APP_RUN in parallel on $PWD using $1 processes" - ( mpirun -np $1 $APP_RUN -parallel < /dev/null > log.$APP_RUN 2>&1 ) + nProcs=$1 + shift + echo "Running $APP_RUN in parallel on $PWD using $nProcs processes" + ( mpirun -np $nProcs $APP_RUN -parallel $* < /dev/null > log.$APP_RUN 2>&1 ) fi }