From 912008547cc9b5af38505360554c4a5c1ca660b0 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sat, 4 Jun 2016 20:22:22 +0100 Subject: [PATCH] Bugfix: More robust run script --- tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun b/tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun index 49182bed1..060b5e0ac 100755 --- a/tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun +++ b/tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun @@ -19,7 +19,8 @@ runApplication simpleFoam # Copy the mesh from the steady state case and map the results to a # mesh motion case, then solve transient. 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 runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent mv 0/pointDisplacement.unmapped 0/pointDisplacement