Changeset 2744


Ignore:
Timestamp:
01/04/10 14:33:53 (15 years ago)
Author:
Eric.Larour
Message:

Allow presence of rifts in YamsCall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Mesh/YamsCall.m

    r1662 r2744  
    5555fprintf(fid,'%i %i %i %i\n',[md.elements zeros(md.numberofelements,1)]');
    5656numberofelements1=md.numberofelements;
     57       
     58%Deal with rifts
     59if md.numrifts,
     60       
     61        %we have the list of triangles that make up the rift. keep those triangles around during refinement.
     62        triangles=[];
     63        for i=1:md.numrifts,
     64                triangles=[triangles md.rifts(i).segments(:,3)'];
     65        end
     66
     67        fprintf(fid,'\n\n%s\n%i\n\n','RequiredTriangles',length(triangles));
     68        fprintf(fid,'%i\n',triangles);
     69end
    5770
    5871%close
Note: See TracChangeset for help on using the changeset viewer.