#!/bin/bash # #PBS -q four-twelve #PBS -N tst_mth #PBS -l nodes=1:ppn=2 #PBS -e /home/jmc/test_ACES/output/tst_mth.stderr #PBS -o /home/jmc/test_ACES/output/tst_mth.stdout # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/example_scripts/ACESgrid/Attic/aces_test_ifc_mth,v 1.7 2008/08/28 03:59:20 jmc Exp $ # $Name: $ umask 0022 TST_DIR="/home/jmc/test_ACES/gcm_tests" HERE='/home/jmc/test_ACES/output' cd $HERE if test -f /etc/profile.d/modules.sh ; then . /etc/profile.d/modules.sh fi sfx='mth' module add ifc/9.0.021 icc/9.0.021 intel/9.0 OPTFILE="../tools/build_options/linux_ia32_ifort.aces+mth" options='-j 2 -mth -match 10' export OMP_NUM_THREADS=2 export KMP_STACKSIZE=400m checkOut=1 #options="$options -nc" ; checkOut=0 #options="$options -q" ; checkOut=0 # cat << EOF > $HERE"/.cvspass" # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah do not run testreport.' df . exit fi if [ $checkOut -eq 1 ] ; then if test -d $gcmDIR/CVS ; then echo "cvs update of dir $gcmDIR :" ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_? else echo "no dir: $gcmDIR/CVS => try a fresh check-out" checkOut=2 fi fi if [ $checkOut -eq 2 ] ; then if test -e $gcmDIR ; then rm -rf $gcmDIR fi cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1 # cvs co MITgcm /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs /usr/bin/find $gcmDIR -type f | xargs chmod g+r else if test -e $gcmDIR/verification ; then echo "dir $gcmDIR exist" else echo "no dir $gcmDIR/verification => exit" exit fi fi cd $gcmDIR/verification echo ./testreport $options -of $OPTFILE -odir aces-$sfx ./testreport $options -of $OPTFILE -odir aces-$sfx