Changeset 1244


Ignore:
Timestamp:
07/07/09 10:56:02 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed dirichlet icefront

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/BasinConstrain.m

    r1241 r1244  
    5454
    5555%now, make sure all elements on water have grids that are spc'd, otherwise, we'll get a singular problem.
    56 pos=find(md.elementonwater);
    57 grids=unique(md.elements(pos,:));
     56pos=find(~md.elementonwater);
     57numpos=unique(md.elements(pos,:));
     58grids=setdiff(1:1:md.numberofgrids,numpos);
    5859
    5960md.gridondirichlet_diag(grids)=1;
Note: See TracChangeset for help on using the changeset viewer.