Changeset 1067


Ignore:
Timestamp:
06/23/09 14:38:48 (15 years ago)
Author:
seroussi
Message:

no more m_dh.gridset because of hutter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/ice/transient3d.m

    r1034 r1067  
    3535
    3636%initialize (velocity,pressure,...)
    37 solution.u_g=zeros(fem.m_dh.gridset.gsize,1);
    38 if ~isnan(md.vx), solution.u_g(1:6:fem.m_dh.gridset.gsize)=md.vx/md.yts; end
    39 if ~isnan(md.vy), solution.u_g(2:6:fem.m_dh.gridset.gsize)=md.vy/md.yts; end
    40 if ~isnan(md.vz), solution.u_g(3:6:fem.m_dh.gridset.gsize)=md.vz/md.yts; end
    41 solution.pressure=zeros(fem.m_dh.gridset.gsize,1);
     37solution.u_g=zeros(fem.m_dv.gridset.gsize,1);
     38if ~isnan(md.vx), solution.u_g(1:6:fem.m_dv.gridset.gsize)=md.vx/md.yts; end
     39if ~isnan(md.vy), solution.u_g(2:6:fem.m_dv.gridset.gsize)=md.vy/md.yts; end
     40if ~isnan(md.vz), solution.u_g(3:6:fem.m_dv.gridset.gsize)=md.vz/md.yts; end
     41solution.pressure=zeros(fem.m_dv.gridset.gsize,1);
    4242if ~isnan(md.pressure), solution.pressure(1:6:end)=md.pressure; end
    4343solution.t_g=zeros(fem.m_t.gridset.gsize,1);
     
    5353%initialize geometry and time
    5454solution.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;
     55solution.thickness=zeros(fem.m_p.gridset.gsize,1);solution.thickness(1:6:fem.m_p.gridset.gsize)=md.thickness;
     56solution.surface=zeros(fem.m_p.gridset.gsize,1);solution.surface(1:6:fem.m_p.gridset.gsize)=md.surface;
     57solution.bed=zeros(fem.m_p.gridset.gsize,1);solution.bed(1:6:fem.m_p.gridset.gsize)=md.bed;
    5858solution.time=0;
    5959
Note: See TracChangeset for help on using the changeset viewer.