Skip to content

Commit

Permalink
Run in parallel by default; resolves #14
Browse files Browse the repository at this point in the history
  • Loading branch information
petebachant committed Jan 9, 2016
1 parent c8a4229 commit b01d714
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,23 @@ else
alpha_deg=4
fi

parallel=false

cp -rf 0.org 0
python scripts/blockmeshdict.py $foil $alpha_deg
runApplication blockMesh
runApplication createPatch -overwrite
runApplication pimpleFoam
# runApplication refineMesh -all -overwrite

if [ $parallel = true ]
then
runApplication decomposePar
nProc=$(getNumberOfProcessors)
runParallel pimpleFoam $nProc
runApplication reconstructPar
else
runApplication pimpleFoam
fi

runApplication sample -latestTime
runApplication yPlusRAS -latestTime
runApplication yPlus -latestTime

0 comments on commit b01d714

Please sign in to comment.