Changeset 21089
- Timestamp:
- 08/04/16 15:12:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/jenkins.sh
r21084 r21089 315 315 316 316 # This test will allow us to check on the status of the examples. 317 if [ $EXAMPLES_TEST -eq 1 ]; then 317 if [ $EXAMPLES_TEST -eq 1 ]; 318 then 318 319 FILE='runme.m' 319 320 cd $ISSM_DIR/examples … … 332 333 SED='sed' 333 334 fi 334 STEP_EIGHT="\n disp(' Step 8: Plotting exercise');\n md = loadmodel('.\/Models\/Greenland.HistoricTransient_200yr');\n figure\n surfmb=[]; for i=2:201; surfmb=[surfmb ...\n md.results.TransientSolution(i).SmbMassBalance]; end\n subplot(3,1,1); plot([1:200],mean(surfmb));\n title('Mean Surface mass balance');\n vel=[]; for i=2:201; vel=[vel md.results.TransientSolution(i).Vel]; end\n subplot(3,1,2); plot([1:200],mean(vel));\n title('Mean Velocity');\n volume=[]; for i=2:201; volume=[volume md.results.TransientSolution(i).IceVolume]; end\n subplot(3,1,3); plot([1:200],volume);\n title('Ice Volume'); xlabel('years');"335 335 336 336 cd ${dir} … … 338 338 if [ "${dir}" == "./Greenland" ]; 339 339 then 340 STEP_EIGHT="\n disp(' Step 8: Plotting exercise');\n md = loadmodel('.\/Models\/Greenland.HistoricTransient_200yr');\n figure\n surfmb=[]; for i=2:201; surfmb=[surfmb ...\n md.results.TransientSolution(i).SmbMassBalance]; end\n subplot(3,1,1); plot([1:200],mean(surfmb));\n title('Mean Surface mass balance');\n vel=[]; for i=2:201; vel=[vel md.results.TransientSolution(i).Vel]; end\n subplot(3,1,2); plot([1:200],mean(vel));\n title('Mean Velocity');\n volume=[]; for i=2:201; volume=[volume md.results.TransientSolution(i).IceVolume]; end\n subplot(3,1,3); plot([1:200],volume);\n title('Ice Volume'); xlabel('years');" 341 342 $SED -i.bak 's/steps=\[1\];/steps=\[1:8\];\n\ntry\n/' $FILE 340 343 $SED -i.bak "s/if any(steps==8)/&${STEP_EIGHT}/" $FILE 341 $SED -i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE342 344 else 343 345 echo "Not implemented yet!" … … 347 349 ./Download.sh 348 350 else 351 echo 'disp("SUCCESS")' >> $FILE 352 echo 'catch' >> $FILE 353 echo "\tdisp("FAILURE");" >> $FILE 354 echo 'end' >> $FILE 355 echo "starting: ${dir}" 356 349 357 $MATLAB_PATH/bin/matlab -nosplash -nodisplay -r "addpath $ISSM_DIR/src/m/dev; devpath; runme" -logfile $ISSM_DIR/nightlylog/matlab_log_examples.log 350 358 fi … … 384 392 done 385 393 fi 386 #}}} 394 if [ $EXAMPLES_TEST -eq 1 ]; 395 numtests=`cat python_log.log | grep "starting: " | wc -l` 396 for i in `echo $numtests` 397 do 398 juLog -test=Example-$i -name=Error -error=FAILURE cat matlab_log_examples.log 399 done 400 then 401 fi 402 #}}}
Note:
See TracChangeset
for help on using the changeset viewer.