Changeset 12978


Ignore:
Timestamp:
08/10/12 10:45:11 (13 years ago)
Author:
seroussi
Message:

BUG: allow 10-10 tolerance for mesh.z compared to bed and surface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/mesh.m

    r12960 r12978  
    8888                        md = checkfield(md,'mesh.vertexonsurface','size',[md.mesh.numberofvertices 1],'values',[0 1]);
    8989                        if (md.mesh.dimension==3),
    90                                 md = checkfield(md,'mesh.z','>=',md.geometry.bed,'message','''mesh.z'' should be above the bed');
    91                                 md = checkfield(md,'mesh.z','<=',md.geometry.surface,'message','''mesh.z'' should be below the ice surface');
     90                                md = checkfield(md,'mesh.z','>=',md.geometry.bed-10^-10,'message','''mesh.z'' lower than bedrock');
     91                                md = checkfield(md,'mesh.z','<=',md.geometry.surface+10^-10,'message','''mesh.z'' higher than surface elevation');
    9292                        end
    9393                        if (md.mesh.dimension==2),
Note: See TracChangeset for help on using the changeset viewer.