Changeset 21019


Ignore:
Timestamp:
07/27/16 15:11:52 (9 years ago)
Author:
glperez
Message:

FIX: This should do it! Greenland example Jenkins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/jenkins.sh

    r21014 r21019  
    328328
    329329                        # 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                         TEST='do not mind me'
     330                        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
    346332                        if [ "${dir}" == "./Greenland" ];
    347333                        then
    348334                                cd ${dir}
    349                                 sed -i.bak "s/if any(steps==8)/&${TEST}/" $FILE
     335                                sed -i.bak "s/if any(steps==8)/&${STEP_EIGHT}/" $FILE
    350336                                sed -i.bak 's/steps=\[1\];/steps=\[1:8\];/' $FILE
    351337                                cat ./runme.m
Note: See TracChangeset for help on using the changeset viewer.