Ignore:
Timestamp:
09/09/11 07:28:59 (14 years ago)
Author:
Mathieu Morlighem
Message:

moved some stuff to mesh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/m/utils/BC/SetMarineIceSheetBC.m

    r9696 r9714  
    2424        end
    2525        nodeinsideicefront=ContourToMesh(md.elements,md.x,md.y,icefrontfile,'node',2);
    26         vertexonicefront=double(md.nodeonboundary & nodeinsideicefront);
     26        vertexonicefront=double(md.mesh.vertexonboundary & nodeinsideicefront);
    2727else
    2828        %Guess where the ice front is
    2929        vertexonfloatingice=zeros(md.numberofnodes,1);
    3030        vertexonfloatingice(md.elements(find(md.mask.elementonfloatingice),:))=1;
    31         vertexonicefront=double(md.nodeonboundary & vertexonfloatingice);
     31        vertexonicefront=double(md.mesh.vertexonboundary & vertexonfloatingice);
    3232end
    33 pos=find(md.nodeonboundary & ~vertexonicefront);
     33pos=find(md.mesh.vertexonboundary & ~vertexonicefront);
    3434if isempty(pos),
    3535        warning('SetMarineIceSheetBC warning: ice front all around the glacier, no dirichlet found. Dirichlet must be added manually')
     
    5353
    5454md.hydrology.spcwatercolumn=zeros(md.numberofnodes,2);
    55 pos=find(md.nodeonboundary);
     55pos=find(md.mesh.vertexonboundary);
    5656md.hydrology.spcwatercolumn(pos,1)=1;
    5757
    5858%segment on Neumann (Ice Front)
    59 pos=find(vertexonicefront(md.segments(:,1)) | vertexonicefront(md.segments(:,2)));
     59pos=find(vertexonicefront(md.mesh.segments(:,1)) | vertexonicefront(md.mesh.segments(:,2)));
    6060if (md.dim==2)
    61         pressureload=md.segments(pos,:);
     61        pressureload=md.mesh.segments(pos,:);
    6262elseif md.dim==3
    63         pressureload_layer1=[md.segments(pos,1:2)  md.segments(pos,2)+md.numberofnodes2d  md.segments(pos,1)+md.numberofnodes2d  md.segments(pos,3)];
     63        pressureload_layer1=[md.mesh.segments(pos,1:2)  md.mesh.segments(pos,2)+md.numberofnodes2d  md.mesh.segments(pos,1)+md.numberofnodes2d  md.mesh.segments(pos,3)];
    6464        pressureload=[];
    6565        for i=1:md.numlayers-1,
Note: See TracChangeset for help on using the changeset viewer.