Changeset 26286


Ignore:
Timestamp:
05/21/21 15:41:39 (4 years ago)
Author:
jdquinn
Message:

BUG: Corrected default value of ‘steps’ that jenkins/examples_tests.sh expects; minor formatting cleanup

Location:
issm/trunk-jpl/examples
Files:
2 edited

Legend:

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

    r26258 r26286  
    22addpath('../Data','../Functions');
    33
    4 steps=[5];
     4steps=[1];
    55
    6 if any(steps==1) 
     6if any(steps==1)
    77        disp('   Step 1: Global mesh creation');
    88
     
    1818
    1919        plotmodel (md,'data',md.mask.ocean_levelset,'edgecolor','k');
    20 end 
     20end
    2121
    22 if any(steps==2) 
     22if any(steps==2)
    2323        disp('   Step 2: Define loads in meters of ice height equivalent');
    2424        md = loadmodel('./Models/EsaGRACE_Mesh');
     
    3636                'view',[90 -90],'caxis',[-.1 .1],...
    3737                'title','Ice height equivalent [m]');
    38 end 
     38end
    3939
    40 if any(steps==3) 
     40if any(steps==3)
    4141        disp('   Step 3: Parameterization');
    4242        md = loadmodel('./Models/EsaGRACE_Loads');
     
    6565
    6666        save ./Models/EsaGRACE_Parameterization md;
    67 end 
     67end
    6868
    69 if any(steps==4) 
     69if any(steps==4)
    7070        disp('   Step 4: Solve Esa solver');
    7171        md = loadmodel('./Models/EsaGRACE_Parameterization');
     
    7979
    8080        save ./Models/EsaGRACE_Solution md;
    81 end 
     81end
    8282
    83 if any(steps==5) 
     83if any(steps==5)
    8484        disp('   Step 5: Plot solutions');
    8585        md = loadmodel('./Models/EsaGRACE_Solution');
     
    140140                %export_fig(fig_name{kk});
    141141        end
    142 end 
     142end
  • issm/trunk-jpl/examples/EsaWahr/runme.m

    r26258 r26286  
    22addpath('../Functions');
    33
    4 steps=[2];
     4steps=[1];
    55
    6 if any(steps==1) 
     6if any(steps==1)
    77        disp('   Step 1: Mesh creation');
    88
     
    1212
    1313        plotmodel(md,'data','mesh');
    14 end 
     14end
    1515
    16 if any(steps==2) 
     16if any(steps==2)
    1717        disp('   Step 2: Anisotropic mesh creation');
    1818
     
    2828
    2929        plotmodel (md,'data','mesh');
    30 end 
     30end
    3131
    32 if any(steps==3) 
     32if any(steps==3)
    3333        disp('   Step 3: Define loads');
    3434        md = loadmodel('./Models/EsaWahr_Mesh');
     
    4848
    4949        plotmodel (md,'data',md.esa.deltathickness,'title','Ice height equivalent [m]');
    50 end 
     50end
    5151
    52 if any(steps==4) 
     52if any(steps==4)
    5353        disp('   Step 4: Parameterization');
    5454        md = loadmodel('./Models/EsaWahr_Loads');
     
    7474
    7575        save ./Models/EsaWahr_Parameterization md;
    76 end 
     76end
    7777
    78 if any(steps==5) 
     78if any(steps==5)
    7979        disp('   Step 5: Solve Esa solver');
    8080        md = loadmodel('./Models/EsaWahr_Parameterization');
     
    8888
    8989        save ./Models/EsaWahr_Solution md;
    90 end 
     90end
    9191
    92 if any(steps==6) 
     92if any(steps==6)
    9393        disp('   Step 6: Plot solutions');
    9494        md = loadmodel('./Models/EsaWahr_Solution');
     
    9797        horz_n = md.results.EsaSolution.EsaYmotion*1000;        % [mm]
    9898        horz_e = md.results.EsaSolution.EsaXmotion*1000;        % [mm]
    99         horz = sqrt(horz_n.^2+horz_e.^2);                                               % [mm] 
     99        horz = sqrt(horz_n.^2+horz_e.^2);                                               % [mm]
    100100
    101101        set(0,'DefaultAxesFontSize',24,'DefaultAxesLineWidth',1,'DefaultTextFontSize',24,'DefaultLineMarkerSize',6);
     
    121121                'colorbarpos',[0.53,0.065,0.18,0.02],'colorbartitle#4','East-west [mm]');
    122122        %export_fig('Fig5.pdf');
    123 end 
     123end
    124124
    125 if any(steps==7) 
     125if any(steps==7)
    126126        disp('   Step 7: Compare results against Wahr semi-analytic solutions');
    127127        md = loadmodel('./Models/EsaWahr_Solution');
     
    130130        horz_n = md.results.EsaSolution.EsaYmotion*1000;        % [mm]
    131131        horz_e = md.results.EsaSolution.EsaXmotion*1000;        % [mm]
    132         horz = sqrt(horz_n.^2+horz_e.^2);                                               % [mm] 
     132        horz = sqrt(horz_n.^2+horz_e.^2);                                               % [mm]
    133133
    134134        xi=[0:500:100000]; % grid points [m]
     
    162162                set(gcf,'color','w');
    163163        %export_fig('Fig6.pdf');
    164 end 
     164end
Note: See TracChangeset for help on using the changeset viewer.