Changeset 13675
- Timestamp:
- 10/15/12 14:06:03 (12 years ago)
- Location:
- issm/trunk-jpl/test/Par
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/Par/79North.par
r13233 r13675 9 9 surface=transpose(ncread('../Data/79North.nc','surface')); 10 10 thickness=transpose(ncread('../Data/79North.nc','thickness')); 11 md.initialization.vx 12 md.initialization.vy 11 md.initialization.vx =InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y); 12 md.initialization.vy =InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y); 13 13 md.geometry.surface =InterpFromMeshToMesh2d(index,x,y,surface,md.mesh.x,md.mesh.y); 14 14 md.geometry.thickness=InterpFromMeshToMesh2d(index,x,y,thickness,md.mesh.x,md.mesh.y); … … 23 23 %Friction 24 24 pos=find(md.mask.elementonfloatingice); 25 md.friction.coefficient=50 *ones(md.mesh.numberofvertices,1);26 md.friction.coefficient(md.mesh.elements(pos,:))=0 ;25 md.friction.coefficient=50.*ones(md.mesh.numberofvertices,1); 26 md.friction.coefficient(md.mesh.elements(pos,:))=0.; 27 27 md.friction.p=ones(md.mesh.numberofelements,1); 28 28 md.friction.q=ones(md.mesh.numberofelements,1); 29 29 30 30 %Ice shelf melting and surface mass balance 31 pos=find(md.mask.elementonfloatingice); 31 32 md.basalforcings.melting_rate=zeros(md.mesh.numberofvertices,1); 32 pos=zeros(md.mesh.numberofvertices,1); 33 pos(md.mesh.elements(find(md.mask.elementonfloatingice),:))=1; 34 md.basalforcings.melting_rate(find(pos))=10; 35 md.surfaceforcings.mass_balance=15*ones(md.mesh.numberofvertices,1); 33 md.basalforcings.melting_rate(md.mesh.elements(pos,:))=10; 34 md.surfaceforcings.mass_balance=15.*ones(md.mesh.numberofvertices,1); 36 35 37 36 %Numerical parameters … … 41 40 md.verbose=verbose(0); 42 41 md.settings.waitonlock=30; 43 md.timestepping.time_step=1 ;44 md.timestepping.final_time=3 ;42 md.timestepping.time_step=1.; 43 md.timestepping.final_time=3.; 45 44 md.diagnostic.restol=0.05; 46 45 md.diagnostic.reltol=0.005;
Note:
See TracChangeset
for help on using the changeset viewer.