- Timestamp:
- 02/08/21 14:40:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/examples/UncertaintyQuantification/runme.m
r25986 r25987 1 1 %PIG Uncertainty Quantification Tutorial 2 steps=[1 ];3 4 if any(steps==1) 2 steps=[1:7]; 3 4 if any(steps==1) 5 5 disp(' Step 1: plot flux gates'); 6 6 … … 28 28 '8','9','10','11','12','13'},... 29 29 'textposition',textpositions); 30 end 31 32 if any(steps==2) 30 end 31 32 if any(steps==2) 33 33 disp(' Step 2: compute cross overs from CRESIS'); 34 34 … … 58 58 59 59 save Models/PIG.CrossOvers DeltaHH 60 end 61 62 if any(steps==3) 60 end 61 62 if any(steps==3) 63 63 disp(' Step 3: sampling analysis'); 64 64 … … 141 141 142 142 %Dakota runs in parallel with a master/slave configuration. 143 % At least 2 cpu's are needed to run the UQ143 % At least 2 CPUs are needed to run the UQ 144 144 md.qmu.params.evaluation_scheduling='master'; 145 145 md.qmu.params.processors_per_evaluation=md.cluster.np-1; … … 150 150 151 151 save ./Models/PIG.Sampling md; 152 end 153 154 if any(steps==4) 155 disp(' Step 4: sensitivity analysis'); 152 end 153 154 if any(steps==4) 155 disp(' Step 4: plot partition'); 156 157 %load model 158 md = loadmodel('./Models/PIG.Sampling'); 159 160 plotmodel(md,'data','mesh','partition',partition,... 161 'linewidth',2, 'axis#all','image','unit','km','colorbar','off',... 162 'title','Partition Edges on ISSM mesh','grid','on'); 163 end 164 165 if any(steps==5) 166 disp(' Step 5: sensitivity analysis'); 156 167 157 168 %load model … … 231 242 232 243 %Dakota runs in parallel with a master/slave configuration. 233 % At least 2 cpu's are needed to run the UQ244 % At least 2 CPUs are needed to run the UQ 234 245 md.qmu.params.evaluation_scheduling='master'; 235 246 md.qmu.params.processors_per_evaluation=md.cluster.np-1; … … 242 253 243 254 save ./Models/PIG.Sensitivity md; 244 end 245 246 if any(steps==5) 247 disp(' Step 5: plot partition'); 248 249 %load model 250 md = loadmodel('./Models/PIG.Sampling'); 251 252 plotmodel(md,'data','mesh','partition',partition,... 253 'linewidth',2, 'axis#all','image','unit','km','colorbar','off',... 254 'title','Partition Edges on ISSM mesh','grid','on'); 255 end 256 257 if any(steps==6) 255 end 256 257 if any(steps==6) 258 258 disp(' Step 6: plot histogram'); 259 259 … … 272 272 'xlabelplt','M (Gt/yr)','ylabelplt','F','FontSize',8,'FaceColor',... 273 273 'none','EdgeColor','red'); 274 275 end 276 277 if any(steps==7) 274 end 275 276 if any(steps==7) 278 277 disp(' Step 7: plot sensitivity'); 279 278 … … 295 294 'expstyle#all','b-','linewidth#all',2,... 296 295 'nlines',3,'ncols',1, 'axis#all','image',... 296 'caxis#1',[0 150],'caxis#2',[-20 0],'caxis#3',[-25 0],... 297 297 'colorbar#all','on','colorbarfontsize#all',10,... 298 298 'colorbartitle#1','S_{H}', 'colorbartitle#2','S_{\alpha}',... … … 313 313 'colorbartitle#3','If_{B}','unit#all','km','figure',2,... 314 314 'title','Importance Factors: H, \alpha, B'); 315 end 315 end
Note:
See TracChangeset
for help on using the changeset viewer.