Changeset 3935
- Timestamp:
- Jun 15, 2021, 10:16:38 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/check_version.sh
r3926 r3935 15 15 parallel=none 16 16 parallel=mpi_omp 17 justcheck=0 # just compare results not writing of results in RESUBENCH 17 18 tmpdir=/tmp/`whoami` ; mkdir -p $tmpdir 18 19 … … 51 52 "-c") 52 53 compilo="$2" ; shift ; shift ;; 54 "-j") 55 justcheck="$2" ; shift ; shift ;; 53 56 *) 54 57 version="$1" ; shift ; if [ "$#" = 1 ] ; then version_ref=$1 ; shift ; fi ;; … … 70 73 71 74 # recuperation de la version a laquelle on compare pour le message final : 72 comparea=`ls -l $RESU_D/$version_ref | awk -F/ ' { print $NF } '`75 comparea=`ls -ld $RESU_D/$version_ref | awk -F/ ' { print $NF } '` 73 76 74 77 # LANCEMENT D UN CERTAIN NOMBRE DE TESTS … … 80 83 if [ $diagonly = 0 ] ; then 81 84 \rm -f install_lmdz.sh ; $get/install_lmdz.sh ; chmod +x install_lmdz.sh 82 ./install_lmdz.sh -v $version -d $resolution -SCM -parallel $parallel 85 ./install_lmdz.sh -v $version -d $resolution -SCM -parallel $parallel -veget CMIP6 83 86 fi 84 87 … … 88 91 outf=$MODEL/1D/EXEC/NPv6.1L79/ARMCU/REF/restartphy.nc 89 92 if [ -f $outf ] ; then 90 mkdir -p $resubench/ARMCU/REF 91 cp $MODEL/1D/EXEC/NPv6.1L79/ARMCU/REF/restartphy.nc $resubench/ARMCU/REF/ 92 cmp -s $resubench/ARMCU/REF/restartphy.nc $latest/ARMCU/REF/restartphy.nc 93 if [ $? = 0 ] ; then converge1D=U ; else converge1D=u ; fi 93 if [ $justcheck = 0 ] ; then 94 mkdir -p $resubench/ARMCU/REF 95 cp $MODEL/1D/EXEC/NPv6.1L79/ARMCU/REF/restartphy.nc $resubench/ARMCU/REF/ 96 fi 97 # cmp -s $resubench/ARMCU/REF/restartphy.nc $latest/ARMCU/REF/restartphy.nc 98 cmp -s $MODEL/1D/EXEC/NPv6.1L79/ARMCU/REF/restartphy.nc $latest/ARMCU/REF/restartphy.nc 99 if [ $? = 0 ] ; then converge1D=U ; else converge1D=u ; fi 94 100 else 95 101 converge1D=- … … 125 131 # Les resultats de la simulation debug sont dans SIMD 126 132 127 mkdir -p $resubench/$BENCH133 if [ $justcheck = 0 ] ; then mkdir -p $resubench/$BENCH; fi 128 134 if [ -f restartphy.nc ] ; then 129 ncks -M -m -h -v ps -O restart.nc $resubench/$BENCH/ps.nc 130 cp restart.nc $resubench/$BENCH/restart.nc 131 cmp -s $resubench/$BENCH/restart.nc $latest/$BENCH/restart.nc 135 if [ $justcheck = 0 ] ; then 136 ncks -M -m -h -v ps -O restart.nc $resubench/$BENCH/ps.nc 137 cp restart.nc $resubench/$BENCH/restart.nc 138 fi 139 # cmp -s $resubench/$BENCH/restart.nc $latest/$BENCH/restart.nc 140 cmp -s ./restart.nc $latest/$BENCH/restart.nc 132 141 if [ $? = 0 ] ; then converge=S ; else converge=s ; fi 133 142 else … … 143 152 suf=NPv5.5 144 153 suf=NPv6.0.14splith 145 cp -f config.def_oraer config.def 154 # cp -f config.def_oraer config.def 155 sed -e 's/VEGET=y/VEGET=n/' config.def_oraer > config.def 146 156 if [ -f physiq.def_$suf ] ; then \cp -f physiq.def_$suf physiq.def ; fi 147 157 if [ $diagonly = 0 ] ; then … … 180 190 # if [ -f restartphy.nc ] ; then Correction 2017/04/26 181 191 if [ -f SIM1/restartphy.nc ] ; then 182 ncks -M -m -h -v ps -O SIM1/restart.nc $resubench/$BENCH/ps$suf.nc 183 cp SIM1/restart.nc $resubench/$BENCH/restart$suf.nc 184 \rm sechiba_out_2.nc sechiba_history.nc sechiba_rest_out.nc 185 cmp -s $resubench/$BENCH/restart$suf.nc $latest/$BENCH/restart$suf.nc 192 if [ $justcheck = 0 ] ; then 193 ncks -M -m -h -v ps -O SIM1/restart.nc $resubench/$BENCH/ps$suf.nc 194 cp SIM1/restart.nc $resubench/$BENCH/restart$suf.nc 195 fi 196 \rm sechiba_out_2.nc sechiba_history.nc sechiba_rest_out.nc 197 # cmp -s $resubench/$BENCH/restart$suf.nc $latest/$BENCH/restart$suf.nc 198 cmp -s SIM1/restart.nc $latest/$BENCH/restart$suf.nc 186 199 if [ $? = 0 ] ; then convergeNP=N ; else convergeNP=n ; fi 187 200 else … … 202 215 suf=D 203 216 if [ -f SIMD/restartphy.nc ] ; then 204 ncks -M -m -h -v ps -O SIMD/restart.nc $resubench/$BENCH/ps$suf.nc 205 cp SIMD/restart.nc $resubench/$BENCH/restart$suf.nc 206 cmp -s $resubench/$BENCH/restart$suf.nc $latest/$BENCH/restart$suf.nc 207 if [ $? = 0 ] ; then convergeD=D ; else convergeD=d ; fi 217 if [ $justcheck = 0 ] ; then 218 ncks -M -m -h -v ps -O SIMD/restart.nc $resubench/$BENCH/ps$suf.nc 219 cp SIMD/restart.nc $resubench/$BENCH/restart$suf.nc 220 fi 221 cmp -s SIMD/restart.nc $latest/$BENCH/restart$suf.nc 222 if [ $? = 0 ] ; then convergeD=D ; else convergeD=d ; fi 208 223 else 209 224 convergeD=- … … 224 239 if [ -f limit.nc ] ; then 225 240 var=Tsoil01srf01 226 mkdir -p $resubench/START$resolution 227 ncks -M -m -h -v $var startphy.nc -O $resubench/START$resolution/$var.nc 228 cp startphy.nc $resubench/START$resolution/ 241 if [ $justcheck = 0 ] ; then 242 mkdir -p $resubench/START$resolution 243 ncks -M -m -h -v $var startphy.nc -O $resubench/START$resolution/$var.nc 244 cp startphy.nc $resubench/START$resolution/ 245 fi 229 246 #! cmp -s $resubench/START$resolution/$var.nc $latest/START$resolution/$var.nc 230 cmp -s $resubench/START$resolution/startphy.nc $latest/START$resolution/startphy.nc247 cmp -s startphy.nc $latest/START$resolution/startphy.nc 231 248 if [ $? = 0 ] ; then 232 249 init=OK … … 237 254 init=- 238 255 fi 256 ######################################################################## 257 echo end of test cases 258 ######################################################################## 239 259 bench=OK 240 260 else … … 243 263 fi 244 264 245 latest=$RESU_D/latest 246 \rm -f $latest 247 ln -sf $resubench $latest 265 if [ $justcheck = 0 ] ; then 266 latest=$RESU_D/latest 267 \rm -f $latest 268 ln -sf $resubench $latest 269 fi 270 248 271 249 272 cd $MODEL/m*/m*/
Note: See TracChangeset
for help on using the changeset viewer.