source: issm/oecreview/Archive/20545-21336/ISSM-20751-20752.diff@ 21337

Last change on this file since 21337 was 21337, checked in by Mathieu Morlighem, 8 years ago

CHG: added Archive/20545-21336

File size: 2.3 KB
  • ../trunk-jpl/examples/MeltingSensitivity/runme.m

     
    1 step=[1];
     1step=[4];
    22
    33if step==1 %Transient Run #1
    44
    5         md = loadmodel('./Models/PIG.Control_drag');   
     5        md = loadmodel('../Pig/Models/PIG.Control_drag');       
    66
    77        md.inversion.iscontrol=0;
    88        md.transient.ismasstransport=1;
     
    1111        md.transient.ismovingfront=0;
    1212        md.transient.isthermal=0;
    1313       
     14        pos=find(md.mask.groundedice_levelset<0);
    1415        md.basalforcings.groundedice_melting_rate=zeros(md.mesh.numberofvertices,1);
    15         md.basalforcings.floatingice_melting_rate=30*ones(md.mesh.numberofvertices,1);
     16        md.basalforcings.floatingice_melting_rate=25*ones(md.mesh.numberofvertices,1);
    1617       
    1718        md.timestepping.time_step=0.1;
    1819        md.timestepping.final_time=10;
     
    4344        md = loadmodel('./Models/PIG.Transient');       
    4445
    4546        md.basalforcings.groundedice_melting_rate=zeros(md.mesh.numberofvertices,1);
    46         md.basalforcings.floatingice_melting_rate=30*ones(md.mesh.numberofvertices,1);
     47        md.basalforcings.floatingice_melting_rate=25*ones(md.mesh.numberofvertices,1);
    4748
    48         md.smb.mass_balance=2*md.smb.mass_balance;
     49        md.smb.mass_balance=0*md.smb.mass_balance;
    4950       
    5051        md.timestepping.time_step=0.1;
    5152        md.timestepping.final_time=10;
     
    6061if step==4 %Ice Front retreat
    6162        md = loadmodel('./Models/PIG.Transient');       
    6263
    63         md.basalforcings.groundedice_melting_rate=zeros(md.mesh.numberofvertices,1);
    64         md.basalforcings.floatingice_melting_rate=30*ones(md.mesh.numberofvertices,1);
     64        md2=extract(md,'FrontRetreat.exp');
    6565
    66         md.timestepping.time_step=0.1;
    67         md.timestepping.final_time=10;
    68         md.transient.requested_outputs={'default','IceVolume','IceVolumeAboveFloatation'}
     66        md2=SetMarineIceSheetBC(md2);
    6967
    70         md=solve(md,TransientSolutionEnum);
     68        md2.basalforcings.groundedice_melting_rate=zeros(md2.mesh.numberofvertices,1);
     69        md2.basalforcings.floatingice_melting_rate=25*ones(md2.mesh.numberofvertices,1);
    7170
    72         save ./Models/PIG.HighMelt md;
     71        md2.timestepping.time_step=0.1;
     72        md2.timestepping.final_time=10;
     73        md2.transient.requested_outputs={'default','IceVolume','IceVolumeAboveFloatation'}
     74
     75        md2=solve(md2,TransientSolutionEnum);
     76
     77        save ./Models/PIG.FrontRetreat md2;
    7378end
Note: See TracBrowser for help on using the repository browser.