#!/bin/csh -f
#
#to setup the experiments (cs32 and llc90 core run) you want to follow these steps :
#
#1) from MITgcm/verification, get global_oce_cs32 and 
#     global_oce_llc90 using cvs checkout, as
#       cvs co -d global_oce_cs32 MITgcm_contrib/gael/verification/global_oce_cs32
#       cvs co -d global_oce_llc90 MITgcm_contrib/gael/verification/global_oce_llc90
#     and the present script, as
#       cvs co -d . MITgcm_contrib/gael/verification/setup_these_exps.csh
#2) still in MITgcm/verification, execute the present shell 
#     script to get input binaries and link code directories
#       source ./setup_these_exps.csh
#3) exectute MITgcm with testreport. Two examples.
#     To run the cs32 test on one cpu :
#       ./testreport -t global_oce_cs32
#     And to run the llc90 test on 12 cpus, using mpi
#       ./testreport -of=../tools/build_options/linux_amd64_gfortran -MPI 12 -command 'mpirun -np TR_NPROC ./mitgcmuv' -t global_oce_llc90
#4) if you have access to taf then you can run the adjoints as e.g.
#       ./testreport -ad -t global_oce_cs32
#       ./testreport -of=../tools/build_options/linux_amd64_gfortran -MPI 12 -command 'mpirun -np TR_NPROC ./mitgcmuv_ad' -ad -t global_oce_llc90
#5) you will need to provide the content of global_oce_llc90/input_fields/core2
#     and ecmwf, ecco_v4 for those global_oce_llc90 sub-experiments to also run

cd global_oce_cs32
wget http://mitgcm.org/~gforget/input_fields_cs32.tar
tar xf input_fields_cs32.tar
\rm -f input_fields_cs32.tar
ln -s code code_ad
cd ..

cd global_oce_llc90
wget http://mitgcm.org/~gforget/input_fields_llc90.tar 
tar xf input_fields_llc90.tar
\rm -f input_fields_llc90.tar
ln -s code code_ad
cd ..

