STYLE: Converted tcsh scripts to bash
Conflicts: tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeSerialLinks tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/removeSerialLinks
This commit is contained in:
parent
d6dc105cb8
commit
abbef3a87f
3 changed files with 29 additions and 30 deletions
|
@ -1,39 +1,29 @@
|
||||||
#!/bin/tcsh
|
#!/bin/bash
|
||||||
|
|
||||||
# Check for proper number of command line args.
|
# Check for proper number of command line args.
|
||||||
if ($#argv != 2) then
|
if [ "$#" -ne 2 ]; then
|
||||||
echo "Usage: makeLinks fluidCase solidCase"
|
echo "Usage: makeLinks fluidCase solidCase"
|
||||||
goto done
|
exit 1
|
||||||
endif
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo changing into fluid directory
|
echo changing into fluid directory
|
||||||
cd $1
|
cd $1/constant
|
||||||
|
|
||||||
cd constant
|
|
||||||
echo creating links
|
echo creating links
|
||||||
|
|
||||||
ln -s ../../$2/constant solid
|
ln -s ../../$2/constant solid
|
||||||
|
|
||||||
cd ../system
|
cd ../system
|
||||||
|
|
||||||
ln -s ../../$2/system solid
|
ln -s ../../$2/system solid
|
||||||
|
|
||||||
cd ../0
|
cd ../0
|
||||||
|
|
||||||
ln -s ../../$2/0 solid
|
ln -s ../../$2/0 solid
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo creating processor links
|
echo creating processor links
|
||||||
foreach proc(processor*)
|
for proc in processor*
|
||||||
|
do
|
||||||
cd $proc
|
cd $proc
|
||||||
cd 0
|
cd 0
|
||||||
ln -s ../../../$2/$proc/0 solid
|
ln -s ../../../$2/$proc/0 solid
|
||||||
cd ../constant
|
cd ../constant
|
||||||
ln -s ../../../$2/$proc/constant solid
|
ln -s ../../../$2/$proc/constant solid
|
||||||
cd ../..
|
cd ../..
|
||||||
end
|
done
|
||||||
|
|
||||||
done:
|
|
||||||
exit 0
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check for proper number of command line args.
|
||||||
|
if [ "$#" -ne 2 ]; then
|
||||||
|
echo "Usage: makeSerialLinks fluidCase solidCase"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cd $1
|
cd $1
|
||||||
cd constant
|
cd constant
|
||||||
|
@ -7,7 +13,4 @@ cd ../system
|
||||||
ln -s ../../$2/system solid
|
ln -s ../../$2/system solid
|
||||||
cd ../0
|
cd ../0
|
||||||
ln -s ../../$2/0 solid
|
ln -s ../../$2/0 solid
|
||||||
cd ../../
|
cd ../..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check for proper number of command line args.
|
||||||
|
if [ "$#" -ne 2 ]; then
|
||||||
|
echo "Usage: removeSerialLinks fluidCase solidCase"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cd $1
|
cd $1
|
||||||
rm -rf 0/solid
|
rm -rf 0/solid
|
||||||
|
|
Reference in a new issue