source:
issm/oecreview/Archive/20545-21336/ISSM-21025-21026.diff@
21337
Last change on this file since 21337 was 21337, checked in by , 8 years ago | |
---|---|
File size: 1.2 KB |
-
../trunk-jpl/jenkins/jenkins.sh
327 327 echo "Testing directory example: ${dir}" 328 328 329 329 # Greenland is missing step 8 330 if [ -z "$SED" ]; 331 then 332 SED='sed' 333 fi 330 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');" 331 335 332 336 if [ "${dir}" == "./Greenland" ]; 333 337 then 334 338 cd ${dir} 335 339 sed -i.bak "s/if any(steps==8)/&${STEP_EIGHT}/" $FILE 336 sed-i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE340 $SED -i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE 337 341 cat ./runme.m 338 342 cd .. 339 343 else
Note:
See TracBrowser
for help on using the repository browser.