Changeset 10802


Ignore:
Timestamp:
11/18/11 16:56:39 (13 years ago)
Author:
habbalf
Message:

Updated field nodeonwater to mask.vertexonwater

File:
1 edited

Legend:

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

    r9734 r10802  
    7979        field=sqrt(vx_obs.^2+vy_obs.^2);
    8080
    81         %set nodeonwater field
     81        %set mask.vertexonwater field
    8282        if ~strcmp(groundeddomain,'N/A'),
    8383                nodeground=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,groundeddomain,'node',2);
    84                 md.nodeonwater=ones(md.mesh.numberofvertices,1);
    85                 md.nodeonwater(find(nodeground))=0;
     84                md.mask.vertexonwater=ones(md.mesh.numberofvertices,1);
     85                md.mask.vertexonwater(find(nodeground))=0;
    8686        else
    87                 md.nodeonwater=zeros(md.mesh.numberofvertices,1);
     87                md.mask.vertexonwater=zeros(md.mesh.numberofvertices,1);
    8888        end
    8989
    9090        %adapt according to velocities
    91         disp('  adapting...');
     91        disp('  Yo, Im adapting...');
    9292        md=YamsCall(md,field,hmin,hmax,gradation(i),epsilon);
    9393
     
    121121if ~strcmp(groundeddomain,'N/A'),
    122122        nodeground=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,groundeddomain,'node',2);
    123         md.nodeonwater=ones(md.mesh.numberofvertices,1);
    124         md.nodeonwater(find(nodeground))=0;
     123        md.mask.vertexonwater=ones(md.mesh.numberofvertices,1);
     124        md.mask.vertexonwater(find(nodeground))=0;
    125125else
    126         md.nodeonwater=zeros(md.mesh.numberofvertices,1);
     126        md.mask.vertexonwater=zeros(md.mesh.numberofvertices,1);
    127127end
    128128if strcmpi(Names.interp,'node'),
Note: See TracChangeset for help on using the changeset viewer.