Changeset 8849
- Timestamp:
- 2017-11-29T17:56:35+01:00 (7 years ago)
- Location:
- trunk/NEMOGCM/SETTE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/SETTE/new_sette.sh
r8839 r8849 143 143 # ORCA2AGR : 9 & 10 AGRIF active with no zoom, compared to no AGRIF cpp key 144 144 145 for config in 1 2 3 4 5 6 7 8 9 10 145 #for config in 1 2 3 4 5 6 7 8 9 10 146 for config in 9 10 146 147 do 147 148 … … 793 794 set_namelist namelist_cfg ln_read_cfg .true. 794 795 set_namelist namelist_cfg ln_linssh .true. 795 set_namelist namelist_cfg nn_fsbc 1796 796 set_namelist namelist_cfg nn_fwb 0 797 797 set_namelist namelist_cfg jpni 4 … … 817 817 set_namelist namelist_cfg ln_read_cfg .true. 818 818 set_namelist namelist_cfg ln_linssh .true. 819 set_namelist namelist_cfg nn_fsbc 1820 819 set_namelist namelist_cfg nn_fwb 0 821 820 set_namelist namelist_cfg jpni 4 … … 824 823 set_namelist namelist_cfg ln_rstart .true. 825 824 set_namelist namelist_cfg nn_rstctl 2 826 set_namelist namelist_cfg nn_date0 01010 6825 set_namelist namelist_cfg nn_date0 010109 827 826 set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\" 828 827 set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\" … … 1294 1293 set_namelist namelist_cfg jpnj 2 1295 1294 set_namelist namelist_cfg jpnij 4 1295 set_namelist namelist_cfg ln_icebergs .false. 1296 1296 # 1297 1297 # Set the number of fine grids to zero: … … 1335 1335 set_namelist namelist_cfg jpnj 2 1336 1336 set_namelist namelist_cfg jpnij 4 1337 set_namelist namelist_cfg ln_icebergs .false. 1337 1338 # 1338 1339 if [ ${USING_MPMD} == "yes" ] ; then -
trunk/NEMOGCM/SETTE/new_sette_rpt.sh
r8839 r8849 16 16 # For Stand Alone Surface configuration ocean is not running, just run ice model; so no outputs ocean files. 17 17 # Compares LONG rebuild restart ice file with equivalent entry from the SHORT rebuild restart ice file. 18 # 19 # check nco module loaded, and load it if not 20 if [ ! $( echo $LOADEDMODULES | grep cdo ) ]; then module load cdo >& /dev/null ; fi 18 21 # 19 22 vdir=$1 … … 27 30 rep2=`ls -1rt $vdir/$nam/$mach/$dorv/ | tail -1l` 28 31 cd ${SAS_RESTART_DIR}/LONG 29 32 #SF add here compilation of rebuild_tools to rebuild restart files, and add comparison of restart files 30 33 cd ${TOOLS_DIR} 31 34 ./maketools -n REBUILD_NEMO -m ${mach} > /dev/null 2>&1 32 35 cd ${TOOLS_DIR}/REBUILD_NEMO 33 36 #SF echo "REBUILD LONG restart SAS files, without standard output" 34 37 ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/LONG/SAS_00000240_restart_ice $NPROC > /dev/null 2>&1 35 38 #SF echo "REBUILD SHORT restart SAS files, without standard output" 36 39 ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/SHORT/SAS_00000240_restart_ice $NPROC >&- 37 40 cd ${SAS_RESTART_DIR}/LONG 38 41 #SF echo "COPY rebuild restart files" 39 42 cp SAS_00000240_restart_ice.nc $vdir/$nam/$mach/$dorv/LONG/. 40 43 cp ../SHORT/SAS_00000240_restart_ice.nc $vdir/$nam/$mach/$dorv/SHORT/. … … 45 48 printf "%-20s %s\n" $nam " REBUILD SAS restart ice DOES NOT exists; incomplete test"; 46 49 return; 47 50 fi 48 51 # 49 52 done_oce=0 50 53 # 51 if [ -f $f1o ] && [ -f $f2o ]; then 52 cmp -s $f1o $f2o 53 #SF cmp SAS_00000240_restart_ice.nc ../SHORT/SAS_00000240_restart_ice.nc > diff_restart.txt 54 if [ $? == 0 ]; then 54 if [ -f $f1o ] && [ -f $f2o ]; then 55 ## Compare the two netcdf files 56 cdo diffn $f1o $f2o \ 57 > cdo_diff.out 2> /dev/null 58 ## echo cdo_diff.out 59 ## Identical if first character of $dif ==0 60 [ ! -s cdo_diff.out ] && continue 61 dif=$( grep -om1 '[0-9]* of [0-9]* records differ' cdo_diff.out ) 62 63 if [ -n "$dif" ]; then 64 difi=`echo $dif | cut -c -1` 65 fi 66 \rm cdo_diff.out 67 68 if [ $difi == 0 ]; then 55 69 if [ $pass == 0 ]; then 56 70 printf "%-20s %s %s\n" $nam " SAS restart files are IDENTICAL : passed : " $dorv … … 62 76 # 63 77 if [ $pass == 1 ]; then 64 echo "BE CAREFUL: NEED cdo to see differences!!!!! "65 echo "DO which cdo and replace cdo PATH to the cdo command in SETTE_rpt.sh "66 echo "IF cdo is not available you need to do difference of netcdf file by hand"67 78 echo "<return> to view restart_ice.nc differences" 68 79 read y
Note: See TracChangeset
for help on using the changeset viewer.