#!/bin/bash # #PBS -q four-twelve #PBS -N tst_tuv #PBS -l nodes=1:ppn=2 #PBS -e /home/jmc/test_ACES/output/tst_tuv.stderr #PBS -o /home/jmc/test_ACES/output/tst_tuv.stdout # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/example_scripts/ACESgrid/Attic/aces_test_op64_tuv,v 1.5 2008/08/28 18:35:42 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='tuv' module add open64 OPTFILE="../tools/build_options/linux_ia32_open64.trapuv" options='-j 2 -gsl -match 10' export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized 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/verification 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