Changeset 2078


Ignore:
Timestamp:
09/02/09 09:18:50 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added node and element connectivity computation in meshtyams

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

Legend:

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

    r1347 r2078  
    66
    77%Now, build the connectivity tables for this mesh.
    8 md.nodeconnectivity=NodeConnectivity(md.elements,md.numberofgrids);
    9 md.elementconnectivity=ElementConnectivity(md.elements,md.nodeconnectivity);
     8if size(md.nodeconnectivity,1)~=md.numberofgrids,
     9        md.nodeconnectivity=NodeConnectivity(md.elements,md.numberofgrids);
     10end
     11if size(md.elementconnectivity,1)~=md.numberofelements,
     12        md.elementconnectivity=ElementConnectivity(md.elements,md.nodeconnectivity);
     13end
    1014
    1115%Recreate the segments
  • issm/trunk/src/m/classes/public/mesh/meshyams.m

    r1346 r2078  
    7575disp(['Final mesh, number of elements: ' num2str(md.numberofelements)]);
    7676
     77%Now, build the connectivity tables for this mesh.
     78md.nodeconnectivity=NodeConnectivity(md.elements,md.numberofgrids);
     79md.elementconnectivity=ElementConnectivity(md.elements,md.nodeconnectivity);
     80
    7781%recreate segments
    7882md.segments=findsegments(md);
Note: See TracChangeset for help on using the changeset viewer.