Changeset 22300


Ignore:
Timestamp:
12/22/17 08:24:32 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better error message

Location:
issm/trunk-jpl/src/m/mesh
Files:
2 edited

Legend:

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

    r22215 r22300  
    523523%Check for orphan
    524524if any(~ismember(1:md.mesh.numberofvertices,sort(unique(reshape(md.mesh.elements,3*md.mesh.numberofelements,1)))))
    525         error('Output mesh has orphans. Decrease MaxCornerAngle to prevent outside points (ex: 0.01)');
     525        error('Output mesh has orphans. Check your Domain and/or RequiredVertices');
    526526end
    527527end
  • issm/trunk-jpl/src/m/mesh/bamg.py

    r22299 r22300  
    479479        #Check for orphan
    480480        if np.any(np.logical_not(np.in1d(np.arange(1,md.mesh.numberofvertices+1),md.mesh.elements.flat))):
    481                 raise RuntimeError("Output mesh has orphans. Decrease MaxCornerAngle to prevent outside points (ex: 0.01)")
     481                raise RuntimeError("Output mesh has orphans. Check your Domain and/or RequiredVertices")
    482482
    483483        return md
Note: See TracChangeset for help on using the changeset viewer.