Rev | Line | |
---|
[21337] | 1 | Index: ../trunk-jpl/jenkins/jenkins.sh
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/jenkins/jenkins.sh (revision 21025)
|
---|
| 4 | +++ ../trunk-jpl/jenkins/jenkins.sh (revision 21026)
|
---|
| 5 | @@ -327,13 +327,17 @@
|
---|
| 6 | echo "Testing directory example: ${dir}"
|
---|
| 7 |
|
---|
| 8 | # Greenland is missing step 8
|
---|
| 9 | + if [ -z "$SED" ];
|
---|
| 10 | + then
|
---|
| 11 | + SED='sed'
|
---|
| 12 | + fi
|
---|
| 13 | 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');"
|
---|
| 14 |
|
---|
| 15 | if [ "${dir}" == "./Greenland" ];
|
---|
| 16 | then
|
---|
| 17 | cd ${dir}
|
---|
| 18 | sed -i.bak "s/if any(steps==8)/&${STEP_EIGHT}/" $FILE
|
---|
| 19 | - sed -i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE
|
---|
| 20 | + $SED -i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE
|
---|
| 21 | cat ./runme.m
|
---|
| 22 | cd ..
|
---|
| 23 | else
|
---|
Note:
See
TracBrowser
for help on using the repository browser.