ttest_10.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_10.sh (749B)
       ---
            1 #!/bin/bash
            2 
            3 PISM_PATH=$1
            4 MPIEXEC=$2
            5 
            6 echo "Test #10: regridding with different number of processors."
            7 
            8 files="foo0-10.nc foo1-10.nc foo2-10.nc foo3-10.nc foo4-10.nc foo5-10.nc"
            9 
           10 rm -f $files
           11 
           12 set -e -x
           13 
           14 NRANGE="1 2 3 4 5"
           15 
           16 # Create a file to bootstrap from:
           17 $MPIEXEC -n 1 $PISM_PATH/pisms -eisII I -Mx 51 -My 101 -y 0 -o foo0-10.nc
           18 
           19 # Bootstrap:
           20 for NN in $NRANGE;
           21 do 
           22     $MPIEXEC -n $NN $PISM_PATH/pismr -i foo0-10.nc -bootstrap -Mx 51 -My 101 -Mz 11 -Lz 5000 -y 0 -o foo$NN-10.nc -o_size small
           23 done
           24 
           25 set +e
           26 
           27 # Compare:
           28 for i in $NRANGE;
           29 do
           30     for j in $NRANGE;
           31     do
           32         if [ $i -le $j ]; then continue; fi
           33         
           34         $PISM_PATH/nccmp.py -x -v timestamp foo$i-10.nc foo$j-10.nc
           35         if [ $? != 0 ];
           36         then
           37             exit 1
           38         fi
           39     done
           40 done
           41 
           42 rm -f $files; exit 0
           43