Changeset 1341


Ignore:
Timestamp:
07/17/09 07:47:44 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added routine to compute mesh quality

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

Legend:

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

    r1339 r1341  
    111111md.elementonbed=ones(md.numberofelements,1);
    112112md.elementonsurface=ones(md.numberofelements,1);
     113if ~strcmp(groundeddomain,'N/A'),
     114        gridground=ContourToMesh(md.elements,md.x,md.y,expread(groundeddomain,1),'node',2);
     115        md.gridonwater=ones(md.numberofgrids,1);
     116        md.gridonwater(find(gridground))=0;
     117else
     118        md.gridonwater=zeros(md.numberofgrids,1);
     119end
     120md.vx_obs=InterpFromGrid(x_m,y_m,vx,md.x,md.y,0);
     121md.vy_obs=InterpFromGrid(x_m,y_m,vy,md.x,md.y,0);
     122md.vel_obs=sqrt(md.vx_obs.^2+md.vy_obs.^2);
Note: See TracChangeset for help on using the changeset viewer.