| 34 |
#git_repo="git://github.com/$git_repo" |
#git_repo="git://github.com/$git_repo" |
| 35 |
#git_repo="git@github.com:$git_repo" |
#git_repo="git@github.com:$git_repo" |
| 36 |
|
|
| 37 |
|
#------------------------------------------------------------------- |
| 38 |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
| 39 |
# =2 : update (git pull) repo and make a new copy code (switch to 2 if no repo) |
# =2 : update (git pull) repo and make a new copy code (switch to 3 if no repo) |
| 40 |
# =1 : skip update but use a new copy (if sepDir) |
# =1 : skip update but use a new copy (if sepDir) |
| 41 |
# =0 : use existing test code ( switch to 1 if missing test code ) |
# =0 : use existing test code ( switch to 1 if missing test code ) |
| 42 |
dInWeek=`date +%a` |
dInWeek=`date +%a` |
| 43 |
|
|
| 44 |
dNam=`hostname -s | tr '[:upper:]' '[:lower:]'` |
dNam=`hostname -s | tr '[:upper:]' '[:lower:]'` |
| 45 |
TESTDIR="$HOME/test_${dNam}" |
TESTDIR="$HOME/test_${dNam}" |
|
outDir=$dNam |
|
|
MC=11 |
|
| 46 |
#TESTDIR="/scratch/jmc/test_${dNam}" |
#TESTDIR="/scratch/jmc/test_${dNam}" |
| 47 |
#outDir="${dNam}-${tst_grp}" |
#MC=13 ; outDir="${dNam}-${tst_grp}" |
| 48 |
#MC=13 |
MC=11 ; outDir=$dNam |
| 49 |
sepDir=1 |
sepDir=1 |
| 50 |
option= |
option= |
| 51 |
|
|
| 198 |
if test $typ = 'mpi' ; then |
if test $typ = 'mpi' ; then |
| 199 |
addExp="offline_cheapaml atm_gray atm_strato" |
addExp="offline_cheapaml atm_gray atm_strato" |
| 200 |
fi |
fi |
|
if test $typ = 'gfo' -o $typ = 'ifc' -o $typ = 'mpa' ; then |
|
|
addExp="$addExp global_oce_biogeo_bling" |
|
|
fi |
|
| 201 |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
| 202 |
addExp="$addExp shelfice_remeshing" |
addExp="$addExp shelfice_remeshing" |
| 203 |
fi |
fi |
| 204 |
if test $typ = 'mpi' ; then |
if test $typ = 'mpi' ; then |
| 205 |
addExp="$addExp global_ocean.gm_k3d" |
addExp="$addExp global_ocean.gm_k3d" |
| 206 |
|
addExp="$addExp global_ocean.gm_res" |
| 207 |
addExp="$addExp global_oce_cs32" |
addExp="$addExp global_oce_cs32" |
| 208 |
fi |
fi |
| 209 |
#- check day and time: |
#- check day and time: |
| 233 |
if test $sepDir = 1 ; then |
if test $sepDir = 1 ; then |
| 234 |
new_dir="MITgcm_$typ" |
new_dir="MITgcm_$typ" |
| 235 |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
| 236 |
if test -d $new_dir/CVS -a $reUse = 1 ; then |
if test -d $new_dir/doc -a $reUse = 1 ; then |
| 237 |
cd $tdir/$new_dir |
cd $tdir/$new_dir |
| 238 |
if test $tt != $typ ; then |
if test $tt != $typ ; then |
| 239 |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
| 303 |
( cd verification ; ln -s ../$git_other/$exp2add . ) |
( cd verification ; ln -s ../$git_other/$exp2add . ) |
| 304 |
if test $exp2add = 'global_oce_cs32' ; then |
if test $exp2add = 'global_oce_cs32' ; then |
| 305 |
echo " link dir 'other_input/core2_cnyf' in here" | tee -a $tdir/output_$tt |
echo " link dir 'other_input/core2_cnyf' in here" | tee -a $tdir/output_$tt |
| 306 |
( cd verification/${exp2add} |
( cd ${git_other}/${exp2add} |
| 307 |
ln -s ../../../other_input/core2_cnyf . ) |
ln -s ../../../other_input/core2_cnyf . ) |
| 308 |
fi |
fi |
| 309 |
#if test $exp2add = 'shelfice_remeshing' ; then |
#if test $exp2add = 'shelfice_remeshing' ; then |
| 338 |
MPI=0 |
MPI=0 |
| 339 |
case $typ in |
case $typ in |
| 340 |
'g77'|'g7a') OPTFILE='../tools/build_options/linux_amd64_g77' ;; |
'g77'|'g7a') OPTFILE='../tools/build_options/linux_amd64_g77' ;; |
| 341 |
'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -match $MC -devel" |
'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -devel" |
| 342 |
|
#comm="$comm -match $MC" |
| 343 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
| 344 |
'ifc') comm="$comm -devel" |
'ifc') comm="$comm -devel" |
| 345 |
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
| 346 |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
| 347 |
'mpa'|'mpi'|'mp2') comm="$comm -match $MC -devel" ; MPI=8 |
'mpa'|'mpi'|'mp2') comm="$comm -devel" ; MPI=8 |
| 348 |
|
#comm="$comm -match $MC" |
| 349 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
| 350 |
*) OPTFILE= ;; |
*) OPTFILE= ;; |
| 351 |
esac |
esac |
| 358 |
EXE="mpirun -np TR_NPROC ./mitgcmuv" |
EXE="mpirun -np TR_NPROC ./mitgcmuv" |
| 359 |
fi |
fi |
| 360 |
fi |
fi |
| 361 |
|
if test $typ = 'g7a' ; then |
| 362 |
|
#- pkg/ecco does not compile with g77 + no NetCDF here => no pkg/profiles |
| 363 |
|
comm="$comm -skd global_oce_biogeo_bling" |
| 364 |
|
fi |
| 365 |
|
|
| 366 |
#-- set specific Env Vars: |
#-- set specific Env Vars: |
| 367 |
if test $typ = 'oad' ; then |
if test $typ = 'oad' ; then |