STYLE: cleanup handling of 0.org directories (in parallel)

- remove duplicate 0/ files from the repository
This commit is contained in:
Mark Olesen
2016-06-29 13:34:36 +02:00
parent 8bdc7e01bf
commit 820f809bd5
44 changed files with 51 additions and 1474 deletions

View File

@ -7,10 +7,10 @@
\cp ../lesFiles/fvS* ../lesFiles/controlDict system/
\cp ../lesFiles/turbulenceProperties constant/
# $1 for special test cases?
\ls -d processor* | xargs -I {} \rm -rf ./{}/0 $1
\ls -d processor* | xargs -I {} \mv ./{}/500 ./{}/0 $1
\ls -d processor* | xargs -I {} \rm -rf ./{}/0/uniform $1
# restart from iteration 500
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
\ls -d processor* | xargs -I {} \mv ./{}/500 ./{}/0
\ls -d processor* | xargs -I {} \rm -rf ./{}/0/uniform
runParallel pisoFoam

View File

@ -20,9 +20,7 @@ runParallel snappyHexMesh -decomposeParDict system/decomposeParDict.ptscotch -pr
find . -type f -iname "*level*" -exec rm {} \;
#- set the initial fields
# $1 for special test cases?
\ls -d processor* | xargs -I {} \rm -rf ./{}/0 $1
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0 $1
restore0Dir -processor
runParallel renumberMesh -overwrite
runParallel potentialFoam -initialiseUBCs

View File

@ -17,8 +17,7 @@ runParallel snappyHexMesh -overwrite
# restore0Dir
#- For parallel running: set the initial fields
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0
restore0Dir -processor
runParallel patchSummary
runParallel potentialFoam

View File

@ -8,17 +8,16 @@ cd ${0%/*} || exit 1 # Run from this directory
mkdir 0
runApplication blockMesh
cp system/decomposeParDict.hierarchical system/decomposeParDict
\cp system/decomposeParDict.hierarchical system/decomposeParDict
runApplication decomposePar
cp system/decomposeParDict.ptscotch system/decomposeParDict
\cp system/decomposeParDict.ptscotch system/decomposeParDict
runParallel snappyHexMesh -overwrite
find . -type f -iname "*level*" -exec rm {} \;
# - set the initial fields
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0
restore0Dir -processor
runParallel topoSet
runParallel $(getApplication)