Changeset 22811


Ignore:
Timestamp:
05/29/18 14:33:48 (7 years ago)
Author:
adhikari
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/EsaWahr/runme.m

    r22793 r22811  
    11
    22clear all;
    3 steps=[1:6]; % [1:6];
    4 
    5 if any(steps==0)
     3addpath('../Functions');
     4
     5steps=[0:6]; % [0:6];
     6
     7if any(steps==0) % Simple mesh creation {{{
    68        disp('   Step 0: Mesh creation');
    79
     
    1416        %export_fig('Fig0.pdf');
    1517
    16 end
    17 
    18 if any(steps==1)
     18end % }}}
     19
     20if any(steps==1) % {{{ Anisotropic mesh creation 
    1921        disp('   Step 1: Anisotropic mesh creation');
    2022
     
    3638        %export_fig('Fig1.pdf');
    3739
    38 end
    39 
    40 if any(steps==2)
     40end % }}}
     41
     42if any(steps==2) % Define loads {{{
    4143        disp('   Step 2: Define loads');
    4244        md = loadmodel('./Models/EsaWahr.Mesh');
     
    6163        %export_fig('Fig2.pdf');
    6264
    63 end
    64 
    65 if any(steps==3)
     65end % }}}
     66
     67if any(steps==3) % Parameterization {{{
    6668        disp('   Step 3: Parameterization');
    6769        md = loadmodel('./Models/EsaWahr.Loads');
     
    7678        md.mask.groundedice_levelset = ones(md.mesh.numberofvertices,1); % 1 = ice is grounnded
    7779
    78         %% IGNORE BUT DO NOT DELETE %%
     80        %% IGNORE BUT DO NOT DELETE %% {{{
    7981        % Geometry: Important only when you want to couple with Ice Flow Model
    8082        di=md.materials.rho_ice/md.materials.rho_water;
     
    8991        % Miscellaneous:
    9092        md.miscellaneous.name='EsaWahr';
    91         %% IGNORE BUT DO NOT DELETE %%
     93        %% IGNORE BUT DO NOT DELETE %% }}} 
    9294       
    9395        save ./Models/EsaWahr.Parameterization md;
    9496
    95 end
    96 
    97 if any(steps==4)
     97end % }}}
     98
     99if any(steps==4) % Solve {{{
    98100        disp('   Step 4: Solve Esa solver');
    99101        md = loadmodel('./Models/EsaWahr.Parameterization');
     
    111113        save ./Models/EsaWahr.Solution md;
    112114
    113 end
    114 
    115 if any(steps==5)
     115end % }}}
     116
     117if any(steps==5) % Plot solutions {{{
    116118        disp('   Step 5: Plot solutions');
    117119        md = loadmodel('./Models/EsaWahr.Solution');
     
    148150        %export_fig('Fig5.pdf');
    149151
    150 end
    151 
    152 if any(steps==6)
     152end % }}}
     153
     154if any(steps==6) % Compare results against semi-analytic solutions {{{
    153155        disp('   Step 6: Compare results against Wahr semi-analytic solutions');
    154156        md = loadmodel('./Models/EsaWahr.Solution');
     
    189191                % first box
    190192                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)');
    192194                set(leg1a,'location','east','Orientation','Vertical','Box','Off','FontSize',16);
    193195                %
     
    196198        %export_fig('Fig6.pdf');
    197199
    198 end
    199 
     200end % }}}
     201
Note: See TracChangeset for help on using the changeset viewer.