#!/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.10 2009/06/16 21:32:22 jmc Exp $ # $Name: $ if test -f /etc/profile.d/modules.sh ; then . /etc/profile.d/modules.sh fi # Note: added to pass big test (the 2 fizhi-cs-* test) ulimit -s unlimited umask 0022 #- to get case insensitive "ls" (and order of tested experiments) export LC_ALL="en_US.UTF-8" TST_DIR="/home/jmc/test_ACES/gcm_tests" HERE='/home/jmc/test_ACES/output' cd $HERE sfx='mth' module add ifc/9.0.021 icc/9.0.021 intel/9.0 OPTFILE="../tools/build_options/linux_ia32_ifort.aces" 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 gcmDIR="MITgcm_$sfx" cd $TST_DIR #- check for disk space: dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'` if [ $dsp -gt 99 ] ; then echo 'Not enough space on this disk => 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