Changeset 440


Ignore:
Timestamp:
05/15/09 08:42:32 (16 years ago)
Author:
Mathieu Morlighem
Message:

fixed diagnostic if setelements type done before extrusion

Location:
issm/trunk/src/m/classes/public
Files:
2 edited

Legend:

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

    r27 r440  
    134134        md.gridonpattyn=project3d(md,md.gridonpattyn,'node');
    135135        md.gridonstokes=project3d(md,md.gridonstokes,'node');
     136
     137        %dead grids
     138        md.deadgrids=ones(md.numberofgrids,1);
     139        md.deadgrids(md.elements(md.elements_type(:,1)~=macayealenum,:))=0;%non macayeal grids are not dead
     140        md.deadgrids(find(md.gridonbed))=0;%grids from elements on bed are not dead
    136141end
    137142
  • issm/trunk/src/m/classes/public/ismodelselfconsistent.m

    r358 r440  
    115115
    116116%SIZE NUMBEROFGRIDS
    117 fields={'x','y','z','B','drag','gridondirichlet_diag','melting','accumulation','surface','thickness','bed','gridonbed','gridonsurface'};
     117fields={'x','y','z','B','drag','gridondirichlet_diag','melting','accumulation','surface','thickness','bed','gridonbed','gridonsurface','deadgrids'};
    118118for i=1:length(fields),
    119119        if find(length(eval(['md.' char(fields(i))]))~=md.numberofgrids),
Note: See TracChangeset for help on using the changeset viewer.