Bugfix: More robust run script

This commit is contained in:
Hrvoje Jasak 2016-06-04 20:22:22 +01:00
parent 50f39d8e50
commit 912008547c

View file

@ -19,7 +19,8 @@ runApplication simpleFoam
# Copy the mesh from the steady state case and map the results to a # Copy the mesh from the steady state case and map the results to a
# mesh motion case, then solve transient. # mesh motion case, then solve transient.
cd ../wingMotion2D_pimpleDyMFoam cd ../wingMotion2D_pimpleDyMFoam
\cp -r ../wingMotion2D_simpleFoam/constant/polyMesh/* constant/polyMesh \rm -rf constant/polyMesh
\cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant/polyMesh
\cp -r 0.org 0 \cp -r 0.org 0
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
mv 0/pointDisplacement.unmapped 0/pointDisplacement mv 0/pointDisplacement.unmapped 0/pointDisplacement