Changeset 21006
- Timestamp:
- 07/27/16 13:54:25 (9 years ago)
- Location:
- issm/trunk-jpl/jenkins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/jenkins.sh
r20975 r21006 316 316 # This test will allow us to check on the status of the examples. 317 317 if [ $EXAMPLES_TEST -eq 1 ]; then 318 FILE='runme.m' 318 319 cd $ISSM_DIR/examples 320 321 for dir in ./* ; 322 do 323 if [ -d "${dir}" ]; 324 then 325 # Some of the examples are incomplete (on purpose). As such, we will have to populate the 326 # missing steps in order to make sure that everything is working. 327 echo "Testing directory example: ${dir}" 328 329 # Greenland is missing step 8 330 STEP_EIGHT=" 331 disp(' Step 8: Plotting exercise'); 332 md = loadmodel('./Models/Greenland.HistoricTransient_200yr'); 333 figure 334 surfmb=[]; for i=2:201; surfmb=[surfmb ... 335 md.results.TransientSolution(i).SmbMassBalance]; end 336 subplot(3,1,1); plot([1:200],mean(surfmb)); 337 title('Mean Surface mass balance'); 338 vel=[]; for i=2:201; vel=[vel md.results.TransientSolution(i).Vel]; end 339 subplot(3,1,2); plot([1:200],mean(vel)); 340 title('Mean Velocity'); 341 volume=[]; for i=2:201; volume=[volume md.results.TransientSolution(i).IceVolume]; end 342 subplot(3,1,3); plot([1:200],volume); 343 title('Ice Volume'); xlabel('years'); 344 " 345 if [ "${dir}" == "Greenland" ]; 346 then 347 cd ${dir} 348 sed -i.bak 's/if any(steps==8)/&\r"${STEP_EIGHT}"/' $FILE 349 sed -i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE 350 cat ./runme.m 351 cd .. 352 else 353 echo "Not implemented yet!" 354 fi 355 fi 356 done 319 357 fi 320 358 -
issm/trunk-jpl/jenkins/macosx_pine-island_examples
r21004 r21006 25 25 MATLAB_TEST=0 26 26 PYTHON_TEST=0 27 EXAMPLES_TEST=1 27 28 28 29 #-----------------------------------#
Note:
See TracChangeset
for help on using the changeset viewer.