Changeset 25938


Ignore:
Timestamp:
01/15/21 11:52:26 (4 years ago)
Author:
adhikari
Message:

BUG: transient runs fixed

File:
1 edited

Legend:

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

    r25937 r25938  
    22addpath('../Data','../Functions');
    33
    4 steps=[6];
     4steps=[7];
    55
    66if any(steps==1) %{{{
     
    199199        md.transient.isstressbalance=0;
    200200        md.transient.isthermal=0;
     201        md.transient.isgia=1;
    201202        md.transient.isslr=1;
    202203
     
    210211        md.verbose=verbose('111111111');
    211212
     213        md.solidearth.requested_outputs = {'Sealevel','SealevelRSL'};
     214       
    212215        md=solve(md,'tr');
    213216
     
    219222        md = loadmodel('./Models/SlrGRACE_Transient');
    220223
    221         time = md.slr.deltathickness(end,:);
     224        time = md.solidearth.surfaceload.icethicknesschange(end,:);
    222225
    223226        for tt=1:length(time)
    224                 gmsl(tt) = md.results.TransientSolution(tt).SealevelEustatic*1000;      % GMSL rate mm/yr
    225                 sol1(:,tt) = md.slr.deltathickness(1:end-1,tt)*100;                                     % ice equivalent height [cm/yr]
    226                 sol2(:,tt) = md.results.TransientSolution(tt+1).Sealevel*1000;          % mm/yr
     227                gmsl(tt) = md.results.TransientSolution(tt).Bslr*1000; % GMSL rate mm/yr
     228                sol1(:,tt) = md.solidearth.surfaceload.icethicknesschange(1:end-1,tt)*100;      % ice equivalent height [cm/yr]
     229                sol2(:,tt) = md.results.TransientSolution(tt+1).SealevelRSL*1000;       % mm/yr
    227230        end
    228231        sol_name = {'Change in water equivalent height [cm]', 'Relative sea-level [mm]'};
Note: See TracChangeset for help on using the changeset viewer.