in decomposeParDict. This default number of processors may be overridden by the new "-np" option to runParallel which must be specified before the application name e.g.: runParallel -np 4 pisoFoam
24 lines
592 B
Bash
Executable File
24 lines
592 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
cd hopperInitialState
|
|
runApplication blockMesh
|
|
runApplication decomposePar
|
|
runParallel `getApplication`
|
|
runApplication reconstructPar -latestTime
|
|
cd ..
|
|
|
|
cd hopperEmptying
|
|
rm -rf 0
|
|
cp -r 0.org 0
|
|
runApplication blockMesh
|
|
runApplication mapFields ../hopperInitialState -sourceTime latestTime
|
|
runApplication decomposePar
|
|
runParallel `getApplication`
|
|
runApplication reconstructPar
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|