Changeset 22811
- Timestamp:
- 05/29/18 14:33:48 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/examples/EsaWahr/runme.m
r22793 r22811 1 1 2 2 clear all; 3 steps=[1:6]; % [1:6]; 4 5 if any(steps==0) 3 addpath('../Functions'); 4 5 steps=[0:6]; % [0:6]; 6 7 if any(steps==0) % Simple mesh creation {{{ 6 8 disp(' Step 0: Mesh creation'); 7 9 … … 14 16 %export_fig('Fig0.pdf'); 15 17 16 end 17 18 if any(steps==1) 18 end % }}} 19 20 if any(steps==1) % {{{ Anisotropic mesh creation 19 21 disp(' Step 1: Anisotropic mesh creation'); 20 22 … … 36 38 %export_fig('Fig1.pdf'); 37 39 38 end 39 40 if any(steps==2) 40 end % }}} 41 42 if any(steps==2) % Define loads {{{ 41 43 disp(' Step 2: Define loads'); 42 44 md = loadmodel('./Models/EsaWahr.Mesh'); … … 61 63 %export_fig('Fig2.pdf'); 62 64 63 end 64 65 if any(steps==3) 65 end % }}} 66 67 if any(steps==3) % Parameterization {{{ 66 68 disp(' Step 3: Parameterization'); 67 69 md = loadmodel('./Models/EsaWahr.Loads'); … … 76 78 md.mask.groundedice_levelset = ones(md.mesh.numberofvertices,1); % 1 = ice is grounnded 77 79 78 %% IGNORE BUT DO NOT DELETE %% 80 %% IGNORE BUT DO NOT DELETE %% {{{ 79 81 % Geometry: Important only when you want to couple with Ice Flow Model 80 82 di=md.materials.rho_ice/md.materials.rho_water; … … 89 91 % Miscellaneous: 90 92 md.miscellaneous.name='EsaWahr'; 91 %% IGNORE BUT DO NOT DELETE %% 93 %% IGNORE BUT DO NOT DELETE %% }}} 92 94 93 95 save ./Models/EsaWahr.Parameterization md; 94 96 95 end 96 97 if any(steps==4) 97 end % }}} 98 99 if any(steps==4) % Solve {{{ 98 100 disp(' Step 4: Solve Esa solver'); 99 101 md = loadmodel('./Models/EsaWahr.Parameterization'); … … 111 113 save ./Models/EsaWahr.Solution md; 112 114 113 end 114 115 if any(steps==5) 115 end % }}} 116 117 if any(steps==5) % Plot solutions {{{ 116 118 disp(' Step 5: Plot solutions'); 117 119 md = loadmodel('./Models/EsaWahr.Solution'); … … 148 150 %export_fig('Fig5.pdf'); 149 151 150 end 151 152 if any(steps==6) 152 end % }}} 153 154 if any(steps==6) % Compare results against semi-analytic solutions {{{ 153 155 disp(' Step 6: Compare results against Wahr semi-analytic solutions'); 154 156 md = loadmodel('./Models/EsaWahr.Solution'); … … 189 191 % first box 190 192 ag1 = gca; 191 leg1a = legend(ag1,[h3,h1,h4,h2],'Vertical (Wahr)','Vertical (ISSM)','Horizontal (Wahr)','Horizontal (ISSM)' ,1);193 leg1a = legend(ag1,[h3,h1,h4,h2],'Vertical (Wahr)','Vertical (ISSM)','Horizontal (Wahr)','Horizontal (ISSM)'); 192 194 set(leg1a,'location','east','Orientation','Vertical','Box','Off','FontSize',16); 193 195 % … … 196 198 %export_fig('Fig6.pdf'); 197 199 198 end 199 200 end % }}} 201
Note:
See TracChangeset
for help on using the changeset viewer.