Changeset 1759


Ignore:
Timestamp:
08/18/09 15:39:43 (16 years ago)
Author:
seroussi
Message:

fixed macayeal

Location:
issm/trunk/src/m/solutions/macayeal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/macayeal/control.m

    r1753 r1759  
    4040index_icefront=md.pressureload; index_icefront=index_icefront(:,1:2); %we strip the last column, which holds the element number for the boundary segment
    4141nodes_on_boundary=md.gridonboundary;
    42 nodes_on_dirichlet=md.gridondirichlet_diag;
     42nodes_on_dirichlet=md.spcvelocity(:,1);
    4343nodes_on_icefront=zeros(nods,1); nodes_on_icefront(index_icefront)=1;
    4444nodes_on_iceshelf=md.gridoniceshelf;
  • issm/trunk/src/m/solutions/macayeal/diagnostic.m

    r1753 r1759  
    249249specified_velocity=zeros(2*nods,1);
    250250pos=find(node_on_dirichlet);
    251 specified_velocity(pos)=md.spcvelocity(pos,1)/md.yts;
    252 specified_velocity(nods+pos)=md.spcvelocity(pos,2)/md.yts;
     251specified_velocity(pos)=md.spcvelocity(pos,4)/md.yts;
     252specified_velocity(nods+pos)=md.spcvelocity(pos,5)/md.yts;
    253253
    254254
Note: See TracChangeset for help on using the changeset viewer.