source: CPL/oasis3-mct/branches/OASIS3-MCT_5.0_branch/examples/regrid_environment/run_verif.sh @ 6331

Last change on this file since 6331 was 6331, checked in by aclsce, 17 months ago

Moved oasis-mct_5.0 in oasis3-mct/branches directory.

  • Property svn:executable set to *
File size: 634 bytes
Line 
1#!/bin/ksh
2#set -x
3srcdir=`pwd`
4n_p_t=$1
5library=$2
6ext=$3
7casename=`basename $srcdir`
8fileres=$srcdir/RUNDIR_${library}_${ext}/resu_${n_p_t}_${library}.txt
9echo $n_p_t > $fileres
10cd RUNDIR_${library}_${ext}
11for rundir in `ls -d ${casename}_*_${n_p_t}_*` ; do
12    sgrid=`echo $rundir | awk -F _ '{print $3}'`
13    tgrid=`echo $rundir | awk -F _ '{print $4}'`
14    remap=`echo $rundir | awk -F _ '{print $5}'`
15    resu=`grep "Error mean" ${rundir}/model1.out_100 | awk -F " " '{print $12}'`
16    echo ${sgrid} ' ' ${tgrid} ' ' ${remap} ' : ' ${resu} >> $fileres
17done
18echo 'Differences'
19echo `diff $srcdir/resu_${library}.txt_OK $fileres`
Note: See TracBrowser for help on using the repository browser.