Changeset 14075
- Timestamp:
- 11/30/12 15:38:54 (12 years ago)
- 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); 2 2 >> plotmodel(md,'data',md.initialization.vel,'caxis',[1e-1 1e4],'log',10); -
issm/workshop/2012/Talks/12_SeaRISE/runme.m
r14029 r14075 22 22 %Mesh Greenland 23 23 md=bamg(md,'hmax',400000,'hmin',5000,'gradation',1.7,'field',vel,'err',8); 24 plotmodel (md,'data','mesh');25 24 26 25 %convert x,y coordinates (Polar stereo) to lat/lon … … 28 27 29 28 save ./Models/Greenland.Mesh_generation md; 29 30 plotmodel (md,'data','mesh'); 30 31 end 31 32 … … 50 51 md.inversion.step_threshold=0.99*ones(md.inversion.nsteps,1); 51 52 md.inversion.maxiter_per_step=5*ones(md.inversion.nsteps,1); 52 md.verbose=verbose('solution',true,'control',true);53 53 54 54 %Cost functions … … 66 66 67 67 %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; 70 69 md.diagnostic.abstol=NaN; 71 70 … … 91 90 y1 = ncread(ncdata,'y1'); 92 91 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; 94 94 smb = [smb smb smb-1.0]; 95 95 md.surfaceforcings.mass_balance = [smb;1 10 20];
Note:
See TracChangeset
for help on using the changeset viewer.