Changeset 1067
- Timestamp:
- 06/23/09 14:38:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/ice/transient3d.m
r1034 r1067 35 35 36 36 %initialize (velocity,pressure,...) 37 solution.u_g=zeros(fem.m_d h.gridset.gsize,1);38 if ~isnan(md.vx), solution.u_g(1:6:fem.m_d h.gridset.gsize)=md.vx/md.yts; end39 if ~isnan(md.vy), solution.u_g(2:6:fem.m_d h.gridset.gsize)=md.vy/md.yts; end40 if ~isnan(md.vz), solution.u_g(3:6:fem.m_d h.gridset.gsize)=md.vz/md.yts; end41 solution.pressure=zeros(fem.m_d h.gridset.gsize,1);37 solution.u_g=zeros(fem.m_dv.gridset.gsize,1); 38 if ~isnan(md.vx), solution.u_g(1:6:fem.m_dv.gridset.gsize)=md.vx/md.yts; end 39 if ~isnan(md.vy), solution.u_g(2:6:fem.m_dv.gridset.gsize)=md.vy/md.yts; end 40 if ~isnan(md.vz), solution.u_g(3:6:fem.m_dv.gridset.gsize)=md.vz/md.yts; end 41 solution.pressure=zeros(fem.m_dv.gridset.gsize,1); 42 42 if ~isnan(md.pressure), solution.pressure(1:6:end)=md.pressure; end 43 43 solution.t_g=zeros(fem.m_t.gridset.gsize,1); … … 53 53 %initialize geometry and time 54 54 solution.mesh=struct('elements',md.elements,'grids',[md.x md.y md.z]); 55 solution.thickness=zeros(fem.m_ dh.gridset.gsize,1);solution.thickness(1:6:fem.m_dh.gridset.gsize)=md.thickness;56 solution.surface=zeros(fem.m_ dh.gridset.gsize,1);solution.surface(1:6:fem.m_dh.gridset.gsize)=md.surface;57 solution.bed=zeros(fem.m_ dh.gridset.gsize,1);solution.bed(1:6:fem.m_dh.gridset.gsize)=md.bed;55 solution.thickness=zeros(fem.m_p.gridset.gsize,1);solution.thickness(1:6:fem.m_p.gridset.gsize)=md.thickness; 56 solution.surface=zeros(fem.m_p.gridset.gsize,1);solution.surface(1:6:fem.m_p.gridset.gsize)=md.surface; 57 solution.bed=zeros(fem.m_p.gridset.gsize,1);solution.bed(1:6:fem.m_p.gridset.gsize)=md.bed; 58 58 solution.time=0; 59 59
Note:
See TracChangeset
for help on using the changeset viewer.