Changeset 3268


Ignore:
Timestamp:
03/12/10 07:27:47 (15 years ago)
Author:
Mathieu Morlighem
Message:

do not use transp but transpose

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

Legend:

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

    r3250 r3268  
    8989                nods=domain(i).nods-1; %the domain are closed 1=end;
    9090                bamg_geometry.Vertices=[bamg_geometry.Vertices; [domain(i).x(1:nods) domain(i).y(1:nods) ones(nods,1)]];
    91                 bamg_geometry.Edges=[bamg_geometry.Edges; [transp(count+1:count+nods) transp([count+2:count+nods count+1])  1*ones(nods,1)]];
     91                bamg_geometry.Edges=[bamg_geometry.Edges; [transpose(count+1:count+nods) transpose([count+2:count+nods count+1])  1*ones(nods,1)]];
    9292
    9393                %update counter
     
    165165                                                bamg_geometry.Edges=[bamg_geometry.Edges;...
    166166                                                        count  count+1  2 ;...
    167                                                         [transp(count+1:count+nods-1) transp([count+2:count+nods])  2*ones(nods-1,1)]];
     167                                                        [transpose(count+1:count+nods-1) transpose([count+2:count+nods])  2*ones(nods-1,1)]];
    168168                                                count=count+nods;
    169169
     
    174174                                nods=rift(i).nods-1;
    175175                                bamg_geometry.Vertices=[bamg_geometry.Vertices; [rift(i).x(:) rift(i).y(:) ones(nods+1,1)]];
    176                                 bamg_geometry.Edges=[bamg_geometry.Edges; [transp(count+1:count+nods) transp([count+2:count+nods+1])  2*ones(nods,1)]];
     176                                bamg_geometry.Edges=[bamg_geometry.Edges; [transpose(count+1:count+nods) transpose([count+2:count+nods+1])  2*ones(nods,1)]];
    177177                                count=count+nods+1;
    178178                        end
  • issm/trunk/src/m/classes/public/mesh/rifts/meshprocessoutsiderifts.m

    r3262 r3268  
    1515
    1616        rift=md.rifts(i);
     17        rift.segments;
    1718        tips=rift.tips;
    1819        outsidetips=tips(find(flags(rift.tips)==0));
     
    2425                %find tip in the segments, take first segment (there should be 2) that holds tip,
    2526                %and grid_connected_to_tip is the other node on this segment:
    26                 tipindex=find(rift.segments(:,1)==tip); tipindex=tipindex(1);
    27                 grid_connected_to_tip=rift.segments(tipindex,2);
     27                tipindex=find(rift.segments(:,1)==tip);
     28                if length(tipindex),
     29                        tipindex=tipindex(1);
     30                        grid_connected_to_tip=rift.segments(tipindex,2);
     31                else
     32                        tipindex=find(rift.segments(:,2)==tip); tipindex=tipindex(1);
     33                        grid_connected_to_tip=rift.segments(tipindex,1);
     34                end
    2835
    2936                %ok, we have the tip node, and the first node connected to it, on the rift. Now,
  • issm/trunk/src/m/classes/public/mesh/rifts/meshprocessrifts.m

    r3260 r3268  
    2525
    2626[md.elements,md.x,md.y,md.segments,md.segmentmarkers,md.rifts]=TriMeshProcessRifts(md.elements,md.x,md.y,md.segments,md.segmentmarkers);
     27
    2728
    2829%Fill in rest of fields:
Note: See TracChangeset for help on using the changeset viewer.