Changeset 21128
- Timestamp:
- 08/10/16 13:45:09 (9 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/examples/Greenland/runme.m
r21057 r21128 210 210 211 211 if any(steps==8) 212 disp(' Step 8: Plotting exercise'); 213 md = loadmodel('./Models/Greenland.HistoricTransient_200yr'); 214 figure 215 surfmb=[]; for i=2:201; surfmb=[surfmb ... 216 md.results.TransientSolution(i).SmbMassBalance]; end 217 subplot(3,1,1); plot([1:200],mean(surfmb)); 218 title('Mean Surface mass balance'); 219 vel=[]; for i=2:201; vel=[vel md.results.TransientSolution(i).Vel]; end 220 subplot(3,1,2); plot([1:200],mean(vel)); 221 title('Mean Velocity'); 222 volume=[]; for i=2:201; volume=[volume md.results.TransientSolution(i).IceVolume]; end 223 subplot(3,1,3); plot([1:200],volume); 224 title('Ice Volume'); xlabel('years'); 212 225 disp(' Step 8: Plotting exercise'); 213 226 -
issm/trunk-jpl/examples/Inversion/runme.m
r21057 r21128 1 1 step=1; 2 if step==12 if any(step==1) 3 3 %Generate observations 4 4 md = model; … … 13 13 save model1 md 14 14 end 15 if step==215 if any(step==2) 16 16 %Modify rheology, now constant 17 17 loadmodel('model1.mat'); … … 29 29 save model2 md 30 30 end 31 if step==331 if any(step==3) 32 32 %invert for ice rigidity 33 33 loadmodel('model2.mat'); … … 49 49 'data',md.results.StressbalanceSolution.Vel,'title','modeled velocities') 50 50 end 51 if step==451 if any(step==4) 52 52 %invert for ice rigidity 53 53 loadmodel('model2.mat'); -
issm/trunk-jpl/examples/Pig/runme.m
r21057 r21128 1 1 step=[1]; 2 2 3 if step==1%Mesh Generation #13 if any(step==1) %Mesh Generation #1 4 4 %Mesh parameters 5 5 domain =['./DomainOutline.exp']; … … 57 57 end 58 58 59 if step==2%Masks #259 if any(step==2) %Masks #2 60 60 61 61 md = loadmodel('./Models/PIG_Mesh_generation'); … … 86 86 end 87 87 88 if step==3%Parameterization #388 if any(step==3) %Parameterization #3 89 89 90 90 md = loadmodel('./Models/PIG_SetMask'); … … 98 98 end 99 99 100 if step==4%Control Method #4100 if any(step==4) %Control Method #4 101 101 102 102 md = loadmodel('./Models/PIG_Parameterization'); … … 141 141 end 142 142 143 if step==5%Plot #5143 if any(step==5) %Plot #5 144 144 145 145 md = loadmodel('./Models/PIG_Control_drag'); … … 158 158 end 159 159 160 if step==6%Higher-Order #6160 if any(step==6) %Higher-Order #6 161 161 162 162 % Load Model … … 174 174 end 175 175 176 if step==7%Plot #7176 if any(step==7) %Plot #7 177 177 178 178 mdHO = loadmodel('./Models/PIG_ModelHO'); -
issm/trunk-jpl/examples/PigSensitivity/runme.m
r21057 r21128 1 1 step=[1]; 2 2 3 if step==1%Transient Run #13 if any(step==1) %Transient Run #1 4 4 5 5 md = loadmodel('../Pig/Models/PIG_Control_drag'); … … 26 26 end 27 27 28 if step==2%High Melt #228 if any(step==2) %High Melt #2 29 29 md = loadmodel('./Models/PIG_Transient'); 30 30 … … 41 41 end 42 42 43 if step==3%Ice Front retreat43 if any(step==3) %Ice Front retreat 44 44 md = loadmodel('./Models/PIG_Transient'); 45 45 … … 60 60 end 61 61 62 if step==4%High surface mass balance #362 if any(step==4) %High surface mass balance #3 63 63 %Load model 64 64 -
issm/trunk-jpl/jenkins/jenkins.sh
r21127 r21128 211 211 212 212 #matlab tests 213 # {{{ 213 214 if [ $MATLAB_TEST -eq 1 ]; then 214 #Launch all tests on different cpus {{{215 #Launch all tests on different cpus 215 216 for (( i=1;i<=$NUMCPUS_RUN;i++ )) 216 217 do … … 286 287 #filter out windows characters: 287 288 cat matlab_log.log | tr -cd '\11\12\40-\176' > matlab_log.log2 && mv matlab_log.log2 matlab_log.log 288 #}}} 289 fi 289 fi 290 # }}} 290 291 291 292 #python tests 293 # {{{ 292 294 if [ $PYTHON_TEST -eq 1 ]; then 293 #Launch all tests on different cpus {{{295 #Launch all tests on different cpus 294 296 PYTHON_START_TIME=$(timer); 295 297 export PYTHONSTARTUP=$ISSM_DIR/src/m/dev/devpath.py … … 318 320 cat python_log$i.log >> python_log.log 319 321 done 320 #}}} 321 fi 322 322 fi 323 # }}} 324 325 # Examples Test 326 # {{{ 323 327 # This test will allow us to check on the status of the examples. 324 328 if [ $EXAMPLES_TEST -eq 1 ]; … … 349 353 $SED -i.bak 's/steps=\[1\];/steps=\[1:8\];\n\ntry\n/' $FILE 350 354 $SED -i.bak "s/if any(steps==8)/&${STEP_EIGHT}/" $FILE 355 elif [ "${dir}" == "./IceBridge" ]; 356 then 357 $SED -i.bak 's/steps=\[1\];/steps=\[1:5\];\n\ntry\n/' $FILE 358 elif [ "${dir}" == "./IceFlowModels" ]; 359 then 360 # Almost nothing to this example 361 $SED -i.bak '1 s/^.*$/try\n\n&/' $FILE 362 elif [ "${dir}" == "./Inversion" ]; 363 then 364 $SED -i.bak 's/steps=\[1\];/steps=\[1:4\];\n\ntry\n/' $FILE 365 elif [ "${dir}" == "./Jakobshavn" ]; 366 then 367 $SED -i.bak 's/steps=\[1\];/steps=\[1:4\];\n\ntry\n/' $FILE 368 elif [ "${dir}" == "./Jakobshavn" ]; 369 then 370 $SED -i.bak 's/steps=\[1\];/steps=\[1:4\];\n\ntry\n/' $FILE 371 elif [ "${dir}" == "./Pig" ]; 372 then 373 # Step 6 is needed 374 STEP_SIX="\n disp('Needs work!')" 375 $SED -i.bak 's/steps=\[1\];/steps=\[1:7\];\n\ntry\n/' $FILE 376 $SED -i.bak "s/if any(steps==6)/&${STEP_SIX}/" $FILE 377 elif [ "${dir}" == "./PigSensitivity" ]; 378 then 379 # Step 4 is needed 380 STEP_FOUR="\n disp('Needs work!')" 381 $SED -i.bak 's/steps=\[1\];/steps=\[1:4\];\n\ntry\n/' $FILE 382 $SED -i.bak "s/if any(steps==6)/&${STEP_FOUR}/" $FILE 383 elif [ "${dir}" == "./SquareIceShelf" ]; 384 then 385 # Almost nothing to this example 386 $SED -i.bak '1 s/^.*$/try\n\n&/' $FILE 387 elif [ "${dir}" == "./UncertaintyQuantification" ]; 388 then 389 $SED -i.bak 's/steps=\[1\];/steps=\[1:7\];\n\ntry\n/' $FILE 351 390 else 352 391 echo "Not implemented yet!" … … 375 414 done 376 415 fi 416 # }}} 377 417 378 418 #process logs to be junit compatible
Note:
See TracChangeset
for help on using the changeset viewer.