source: issm/oecreview/Archive/25834-26739/ISSM-25924-25925.diff@ 27230

Last change on this file since 27230 was 26740, checked in by Mathieu Morlighem, 3 years ago

CHG: added 25834-26739

File size: 2.2 KB
RevLine 
[26740]1Index: ../trunk-jpl/jenkins/examples_tests.sh
2===================================================================
3--- ../trunk-jpl/jenkins/examples_tests.sh (revision 25924)
4+++ ../trunk-jpl/jenkins/examples_tests.sh (revision 25925)
5@@ -39,15 +39,10 @@
6
7 for dir in ./* ; do
8 if [ -d "${dir}" ]; then
9- # Temporary short circuit to check single example
10- if [ "${dir}" != "./UncertaintyQuantification" ]; then
11- continue
12- fi
13+ # Some of the examples are incomplete (on purpose). As such, we will
14+ # have to populate the missing steps in order to make sure that
15+ # everything is working.
16
17- # Some of the examples are incomplete (on purpose). As such, we
18- # will have to populate the missing steps in order to make sure
19- # that everything is working.
20-
21 cd ${dir}
22
23 if [ "${dir}" == "./AMR" ]; then
24@@ -571,14 +566,35 @@
25 perl -0755 -p -i -e "s|if any\(steps==9\).*% step 9 end|${STEP_NINE}|s" $RUNME_FILE
26 RUN_EXAMPLE=1
27 elif [ "${dir}" == "./PigSensitivity" ]; then
28- # TODO: Implement step 4
29-
30 # STEP_FOUR # {{{
31- STEP_FOUR="\n disp('Needs work!')"
32+ STEP_FOUR="\
33+ if any(steps==4)\n\
34+ %Load model\n\
35+ md = loadmodel('./Models/PIG_Transient');\n\
36+ \n\
37+ %Change external forcing basal melting rate and surface mass balance)\n\
38+ md.basalforcings.groundedice_melting_rate=zeros(md.mesh.numberofvertices,1);\n\
39+ md.basalforcings.floatingice_melting_rate=25*ones(md.mesh.numberofvertices,1);\n\
40+ md.smb.mass_balance=2*md.smb.mass_balance;\n\
41+ \n\
42+ %Define time steps and time span of the simulation\n\
43+ md.timestepping.time_step=0.1;\n\
44+ md.timestepping.final_time=10;\n\
45+ \n\
46+ %Request additional outputs\n\
47+ md.transient.requested_outputs={'default','IceVolume','IceVolumeAboveFloatation'};\n\
48+ \n\
49+ %Solve\n\
50+ md=solve(md,'Transient');\n\
51+ \n\
52+ %Save model\n\
53+ save ./Models/PIG_SMB md;\n\
54+ end\n\
55+ "
56 #}}}
57 sed -i '.bak' 's|steps=\[1\];|steps=\[1:4\];\n\ntry\n|' $RUNME_FILE
58 sed -i '' "s|if any(steps==4)|&${STEP_FOUR}|" $RUNME_FILE
59- RUN_EXAMPLE=0
60+ RUN_EXAMPLE=1
61 elif [ "${dir}" == "./shakti" ]; then
62 sed -i '.bak' 's|steps=\[1:3\];|steps=\[1:3\];\n\ntry\n|' $RUNME_FILE
63 RUN_EXAMPLE=1
Note: See TracBrowser for help on using the repository browser.