Ignore:
Timestamp:
09/09/11 13:40:05 (14 years ago)
Author:
seroussi
Message:

working on mesh class

File:
1 edited

Legend:

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

    r9725 r9728  
    33%
    44%   Optional inputs:
    5 %      'elementconnectivity'
     5%      'mesh.elementconnectivity'
    66%
    77%   Usage:
     
    1212
    1313%Get connectivity
    14 elementconnectivity=getfieldvalue(options,'elementconnectivity',md.elementconnectivity);
     14mesh.elementconnectivity=getfieldvalue(options,'mesh.elementconnectivity',md.mesh.elementconnectivity);
    1515
    1616%Now, build the connectivity tables for this mesh if not correclty done
    17 if size(md.elementconnectivity,1)~=md.mesh.numberofelements,
    18         if exist(options,'elementconnectivity'),
    19                 error(' ''elementconnectivity'' option does not have thge right size.');
     17if size(md.mesh.elementconnectivity,1)~=md.mesh.numberofelements,
     18        if exist(options,'mesh.elementconnectivity'),
     19                error(' ''mesh.elementconnectivity'' option does not have thge right size.');
    2020        else
    21                 elementconnectivity=ElementConnectivity(md.elements,md.nodeconnectivity);
     21                mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.nodeconnectivity);
    2222        end
    2323end
    2424
    2525%Recreate the segments
    26 elementonboundary=double(elementconnectivity(:,3)==0);
     26elementonboundary=double(mesh.elementconnectivity(:,3)==0);
    2727pos=find(elementonboundary);
    2828num_segments=length(pos);
     
    3737
    3838        %get elements connected to el1
    39         els2=elementconnectivity(el1,find(elementconnectivity(el1,:)));
     39        els2=mesh.elementconnectivity(el1,find(mesh.elementconnectivity(el1,:)));
    4040
    4141        %el1 is connected to 2 other elements
Note: See TracChangeset for help on using the changeset viewer.