mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Scripts: Add {} following -I option to xargs
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1573
This commit is contained in:
@ -7,9 +7,9 @@
|
|||||||
cp ../lesFiles/fvS* ../lesFiles/controlDict system/
|
cp ../lesFiles/fvS* ../lesFiles/controlDict system/
|
||||||
cp ../lesFiles/turbulenceProperties constant/
|
cp ../lesFiles/turbulenceProperties constant/
|
||||||
|
|
||||||
ls -d processor* | xargs -I rm -rf ./{}/0 $1
|
ls -d processor* | xargs -I {} rm -rf ./{}/0 $1
|
||||||
ls -d processor* | xargs -I mv ./{}/500 ./{}/0 $1
|
ls -d processor* | xargs -I {} mv ./{}/500 ./{}/0 $1
|
||||||
ls -d processor* | xargs -I rm -rf ./{}/0/uniform $1
|
ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform $1
|
||||||
|
|
||||||
runParallel pisoFoam 8
|
runParallel pisoFoam 8
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ runParallel snappyHexMesh 8 -overwrite -parallel
|
|||||||
|
|
||||||
find . -type f -iname "*level*" -exec rm {} \;
|
find . -type f -iname "*level*" -exec rm {} \;
|
||||||
|
|
||||||
ls -d processor* | xargs -I cp -r 0.org ./{}/0 $1
|
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||||
|
|
||||||
runParallel renumberMesh 8 -overwrite
|
runParallel renumberMesh 8 -overwrite
|
||||||
|
|
||||||
|
|||||||
@ -17,8 +17,8 @@ runParallel snappyHexMesh 6 -overwrite
|
|||||||
#cp -r 0.org 0 > /dev/null 2>&1
|
#cp -r 0.org 0 > /dev/null 2>&1
|
||||||
|
|
||||||
#- For parallel running
|
#- For parallel running
|
||||||
ls -d processor* | xargs -I rm -rf ./{}/0
|
ls -d processor* | xargs -I {} rm -rf ./{}/0
|
||||||
ls -d processor* | xargs -I cp -r 0.org ./{}/0
|
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0
|
||||||
|
|
||||||
runParallel patchSummary 6
|
runParallel patchSummary 6
|
||||||
runParallel potentialFoam 6 -noFunctionObjects
|
runParallel potentialFoam 6 -noFunctionObjects
|
||||||
|
|||||||
@ -16,7 +16,7 @@ runParallel snappyHexMesh 4 -overwrite
|
|||||||
|
|
||||||
find . -type f -iname "*level*" -exec rm {} \;
|
find . -type f -iname "*level*" -exec rm {} \;
|
||||||
|
|
||||||
ls -d processor* | xargs -I cp -r 0.org ./{}/0 $1
|
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||||
|
|
||||||
runParallel topoSet 4
|
runParallel topoSet 4
|
||||||
runParallel `getApplication` 4
|
runParallel `getApplication` 4
|
||||||
|
|||||||
@ -69,7 +69,7 @@ rm -rf platforms/*
|
|||||||
|
|
||||||
echo "Cleaning Make sub-directories"
|
echo "Cleaning Make sub-directories"
|
||||||
find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \
|
find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \
|
||||||
xargs -I find '{}' -mindepth 1 -maxdepth 1 -type d -print | \
|
xargs -I {} find '{}' -mindepth 1 -maxdepth 1 -type d -print | \
|
||||||
xargs rm -rf
|
xargs rm -rf
|
||||||
|
|
||||||
echo "Removing lnInclude directories"
|
echo "Removing lnInclude directories"
|
||||||
|
|||||||
@ -79,7 +79,7 @@ do
|
|||||||
echo "Cleaning machine type: $machType"
|
echo "Cleaning machine type: $machType"
|
||||||
|
|
||||||
find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \
|
find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \
|
||||||
xargs -I find '{}' -mindepth 1 -maxdepth 1 \
|
xargs -I {} find '{}' -mindepth 1 -maxdepth 1 \
|
||||||
\( -type d -name "*$machType" -o -name "*$machType$WM_MPLIB" \) \
|
\( -type d -name "*$machType" -o -name "*$machType$WM_MPLIB" \) \
|
||||||
-print | xargs rm -rf
|
-print | xargs rm -rf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user