4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
Np=3 |
Np=3 |
7 |
|
#- parse options: |
8 |
MTH= |
MTH= |
9 |
MTHo= |
MTHo= |
10 |
MTHa= |
MTHa= |
11 |
if [ $# -lt 1 ] |
if test $1 = '-mth' ; then |
12 |
|
MTH='-omp' ; shift |
13 |
|
if test -f input_ocn/eedata.mth ; then MTHo=$MTH ; fi |
14 |
|
if test -f input_atm/eedata.mth ; then MTHa=$MTH ; fi |
15 |
|
fi |
16 |
|
if [ $# -ne 1 ] |
17 |
then |
then |
18 |
echo 'Usage:'`basename $0`' step [-mth]' |
echo 'Usage:'`basename $0`' [opt] step' |
19 |
echo ' => test coupled set-up on linux box (1.cpu)' |
echo ' => test coupled set-up on linux box (1.cpu)' |
20 |
echo 'step = 0 : clean all directories' |
echo 'opt = -mth : compile and run (if eedata.mth) 2-threads for ocn & atm' |
21 |
echo 'step = 1 : compile the 3 executables (cpl,ocn,atm)' |
echo ' step = 0 : clean all directories' |
22 |
echo 'step = 2 : copy input files and dir(s)' |
echo ' step = 1 : compile the 3 executables (cpl,ocn,atm)' |
23 |
echo "step = 3 : run with $Np mpi processes" |
echo ' step = 2 : copy input files and dir(s)' |
24 |
echo 'step = 4 : check the results' |
echo " step = 3 : run with $Np mpi processes" |
25 |
echo 'step = 5 : remove output files in rank_0,1,2 dir.' |
echo ' step = 4 : check the results' |
26 |
echo ' -mth : compile and run 2 threads for ocn & atm' |
echo ' step = 5 : remove output files in rank_0,1,2 dir.' |
27 |
exit |
exit |
|
elif [ $# -eq 2 ] ; then |
|
|
if test $2 = '-mth' ; then |
|
|
MTH='-omp' |
|
|
if test -f input_ocn/eedata.mth ; then MTHo=$MTH ; fi |
|
|
if test -f input_atm/eedata.mth ; then MTHa=$MTH ; fi |
|
|
fi |
|
28 |
fi |
fi |
29 |
kpr=$1 |
kpr=$1 |
30 |
dir=`pwd` |
dir=`pwd` |