15 |
echo 'step = 2 : copy input files and dir(s)' |
echo 'step = 2 : copy input files and dir(s)' |
16 |
echo "step = 3 : run on $Np processor" |
echo "step = 3 : run on $Np processor" |
17 |
echo 'step = 4 : check the results' |
echo 'step = 4 : check the results' |
18 |
|
echo 'step = 5 : remove output files in rank_0,1,2 dir.' |
19 |
exit |
exit |
20 |
fi |
fi |
21 |
kpr=$1 |
kpr=$1 |
47 |
|
|
48 |
if test $kpr = 0 |
if test $kpr = 0 |
49 |
then |
then |
50 |
rm -f genmake_optfile pr_group std_outp Coupler.0000.clog |
rm -f genmake_optfile pr_group std_outp |
51 |
rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.* |
rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.* |
52 |
/bin/rm -r -f rank_0 rank_1 rank_2 |
/bin/rm -r -f rank_0 rank_1 rank_2 |
53 |
if test -f build_cpl/Makefile ; then cd build_cpl ; make CLEAN ; cd .. ; fi |
if test -f build_cpl/Makefile ; then cd build_cpl ; make CLEAN ; cd .. ; fi |
54 |
if test -f build_ocn/Makefile ; then cd build_ocn ; make CLEAN ; cd .. ; fi |
if test -f build_ocn/Makefile ; then cd build_ocn ; make CLEAN ; cd .. ; fi |
55 |
if test -f build_atm/Makefile ; then cd build_atm ; make CLEAN ; cd .. ; fi |
if test -f build_atm/Makefile ; then cd build_atm ; make CLEAN ; cd .. ; fi |
56 |
fi |
fi |
57 |
|
if test $kpr = 5 |
58 |
|
then |
59 |
|
echo 'remove output files in rank_0,1,2 dir.' |
60 |
|
rm -f pr_group std_outp |
61 |
|
if test -d rank_0 ; then cd rank_0 ; rm -f Coupler.0000.clog ; cd .. ; fi |
62 |
|
if test -d rank_1 |
63 |
|
then cd rank_1 ; rm -f *.data *.meta STD???.0000 UV-*.0001.clog ; cd .. ; fi |
64 |
|
if test -d rank_2 |
65 |
|
then cd rank_2 ; rm -f *.data *.meta STD???.0000 UV-*.0001.clog ; cd .. ; fi |
66 |
|
fi |
67 |
|
|
68 |
if test $kpr = 1 |
if test $kpr = 1 |
69 |
then |
then |
114 |
|
|
115 |
if test $kpr = 2 |
if test $kpr = 2 |
116 |
then |
then |
117 |
|
/bin/rm -r -f rank_0 rank_1 rank_2 |
118 |
|
echo 'CP dir:' input_cpl '->' rank_0 |
119 |
cp -p -r input_cpl rank_0 |
cp -p -r input_cpl rank_0 |
|
cp -p -r input_ocn rank_1 |
|
|
cp -p -r input_atm rank_2 |
|
120 |
|
|
121 |
|
echo 'CP dir:' input_ocn '->' rank_1 |
122 |
|
cp -p -r input_ocn rank_1 |
123 |
cd rank_1 |
cd rank_1 |
124 |
./IMPORT_INPUT_FILES |
./prepare_run |
125 |
cd $dir |
cd $dir |
126 |
|
|
127 |
|
echo 'CP dir:' input_atm '->' rank_2 |
128 |
|
cp -p -r input_atm rank_2 |
129 |
cd rank_2 |
cd rank_2 |
130 |
./SHARE_OCN_GRID '../rank_1' |
./prepare_run |
131 |
cd $dir |
cd $dir |
132 |
|
|
133 |
fi |
fi |