Changeset 14075


Ignore:
Timestamp:
11/30/12 15:38:54 (12 years ago)
Author:
schlegel
Message:

CHG: update to match talk pdf

Location:
issm/workshop/2012/Talks/12_SeaRISE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/workshop/2012/Talks/12_SeaRISE/Code/plotparam.m

    r14029 r14075  
    1 >> plotmodel(md,'data',md.initialization.thickness);
     1>> plotmodel(md,'data',md.geometry.thickness);
    22>> plotmodel(md,'data',md.initialization.vel,'caxis',[1e-1 1e4],'log',10);
  • issm/workshop/2012/Talks/12_SeaRISE/runme.m

    r14029 r14075  
    2222        %Mesh Greenland
    2323        md=bamg(md,'hmax',400000,'hmin',5000,'gradation',1.7,'field',vel,'err',8);
    24         plotmodel (md,'data','mesh');
    2524       
    2625        %convert x,y coordinates (Polar stereo) to lat/lon
     
    2827
    2928        save ./Models/Greenland.Mesh_generation md;
     29
     30        plotmodel (md,'data','mesh');
    3031end
    3132
     
    5051        md.inversion.step_threshold=0.99*ones(md.inversion.nsteps,1);
    5152        md.inversion.maxiter_per_step=5*ones(md.inversion.nsteps,1);
    52         md.verbose=verbose('solution',true,'control',true);
    5353
    5454        %Cost functions
     
    6666
    6767        %Additional parameters
    68         md.diagnostic.restol=0.01;
    69         md.diagnostic.reltol=0.1;
     68        md.diagnostic.restol=0.01; md.diagnostic.reltol=0.1;
    7069        md.diagnostic.abstol=NaN;
    7170
     
    9190        y1  = ncread(ncdata,'y1');
    9291        smb = ncread(ncdata,'smb');
    93         smb = InterpFromGridToMesh(x1,y1,smb',md.mesh.x,md.mesh.y,0)*1000/md.materials.rho_ice;
     92        smb = InterpFromGridToMesh(x1,y1,smb',md.mesh.x,md.mesh.y,0);
     93        smb = smb*md.materials.rho_freshwater/md.materials.rho_ice;
    9494        smb = [smb smb smb-1.0];
    9595        md.surfaceforcings.mass_balance = [smb;1 10 20];
Note: See TracChangeset for help on using the changeset viewer.