ttest_02.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
 (HTM) git clone git://src.adamsgaard.dk/pism
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       ttest_02.sh (602B)
       ---
            1 #!/bin/bash
            2 
            3 PISM_PATH=$1
            4 MPIEXEC=$2
            5 
            6 echo "Test # 2: pismv exact processor independence (SIA only; test G)."
            7 files="foo1-02.nc foo2-02.nc foo3-02.nc foo4-02.nc foo6-02.nc"
            8 
            9 set -e -x
           10 
           11 NRANGE="1 2 3 4 6"
           12 
           13 # Create the files:
           14 for NN in $NRANGE;
           15 do 
           16     $MPIEXEC -n $NN $PISM_PATH/pismv -test G -Mx 30 -My 40 -Mz 20 -y 1 -verbose 1 -o foo$NN-02.nc 
           17 done
           18 
           19 set +e
           20 
           21 # Compare:
           22 for i in $NRANGE;
           23 do
           24     for j in $NRANGE;
           25     do
           26         if [ $i -le $j ]; then continue; fi
           27         
           28         $PISM_PATH/nccmp.py -x -v rank,timestamp foo$i-02.nc foo$j-02.nc
           29         if [ $? != 0 ];
           30         then
           31             exit 1
           32         fi
           33     done
           34 done
           35 
           36 rm -f $files; exit 0