4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
Np=3 |
Np=3 |
7 |
|
Opt=' ' |
8 |
|
Opt='-ieee' |
9 |
if [ $# -lt 1 ] |
if [ $# -lt 1 ] |
10 |
then |
then |
11 |
echo 'Usage:'`basename $0`' step ' |
echo 'Usage:'`basename $0`' step ' |
46 |
|
|
47 |
if test $kpr = 0 |
if test $kpr = 0 |
48 |
then |
then |
49 |
rm -f genmake_optfile pr_group std_outp |
rm -f genmake_optfile pr_group std_outp Coupler.0000.clog |
50 |
rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.* |
rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.* |
51 |
/bin/rm -r -f rank_0 rank_1 rank_2 |
/bin/rm -r -f rank_0 rank_1 rank_2 |
52 |
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 |
61 |
echo '==== compile coupler:' |
echo '==== compile coupler:' |
62 |
cd build_cpl |
cd build_cpl |
63 |
echo ' --- genmake2 (cpl):' |
echo ' --- genmake2 (cpl):' |
64 |
../../../tools/genmake2 -of ../genmake_optfile -ieee > TTT.genmake.$$ |
../../../tools/genmake2 -of ../genmake_optfile $Opt > TTT.genmake.$$ |
65 |
tail -5 TTT.genmake.$$ |
tail -5 TTT.genmake.$$ |
66 |
echo ' --- make depend (cpl):' |
echo ' --- make depend (cpl):' |
67 |
make depend > TTT.mkdepend.$$ |
make depend > TTT.mkdepend.$$ |
74 |
echo '==== compile OGCM:' |
echo '==== compile OGCM:' |
75 |
cd build_ocn |
cd build_ocn |
76 |
echo ' --- genmake2 (ocn):' |
echo ' --- genmake2 (ocn):' |
77 |
../../../tools/genmake2 -of ../genmake_optfile -ieee > TTT.genmake.$$ |
../../../tools/genmake2 -of ../genmake_optfile $Opt > TTT.genmake.$$ |
78 |
tail -5 TTT.genmake.$$ |
tail -5 TTT.genmake.$$ |
79 |
echo ' --- make depend (ocn):' |
echo ' --- make depend (ocn):' |
80 |
make depend > TTT.mkdepend.$$ |
make depend > TTT.mkdepend.$$ |
87 |
echo '==== compile AGCM:' |
echo '==== compile AGCM:' |
88 |
cd build_atm |
cd build_atm |
89 |
echo ' --- genmake2 (atm):' |
echo ' --- genmake2 (atm):' |
90 |
../../../tools/genmake2 -of ../genmake_optfile -ieee > TTT.genmake.$$ |
../../../tools/genmake2 -of ../genmake_optfile $Opt > TTT.genmake.$$ |
91 |
tail -5 TTT.genmake.$$ |
tail -5 TTT.genmake.$$ |
92 |
echo ' --- make depend (atm):' |
echo ' --- make depend (atm):' |
93 |
make depend > TTT.mkdepend.$$ |
make depend > TTT.mkdepend.$$ |
115 |
./SHARE_OCN_GRID '../rank_1' |
./SHARE_OCN_GRID '../rank_1' |
116 |
cd $dir |
cd $dir |
117 |
|
|
|
mkdir cpl ocn atm |
|
|
if test -f build_cpl/mitgcmuv ; then cp -p build_cpl/mitgcmuv cpl |
|
|
else echo 'file: build_cpl/mitgcmuv not found => stop'; exit; fi |
|
|
if test -f build_ocn/mitgcmuv ; then cp -p build_ocn/mitgcmuv ocn |
|
|
else echo 'file: build_ocn/mitgcmuv not found => stop'; exit; fi |
|
|
if test -f build_atm/mitgcmuv ; then cp -p build_atm/mitgcmuv atm |
|
|
else echo 'file: build_atm/mitgcmuv not found => stop'; exit; fi |
|
|
|
|
118 |
fi |
fi |
119 |
|
|
120 |
if test $kpr = 3 |
if test $kpr = 3 |