Changeset 8070


Ignore:
Timestamp:
Nov 16, 2010, 7:35:01 AM (8 years ago)
Author:
steve
Message:

Added test of zero area triangle in check_integrity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/neighbour_mesh.py

    r7968 r8070  
    635635            assert abs((area - ref)/area) < epsilon, msg
    636636
     637            msg = 'Triangle (%f,%f), (%f,%f), (%f, %f)' % (x0,y0,x1,y1,x2,y2)
     638            msg += ' is degenerate:  area == %f' % self.areas[i]
     639            assert area > 0.0, msg
     640
    637641            # Check that points are arranged in counter clock-wise order
    638642            v0 = [x1-x0, y1-y0]
Note: See TracChangeset for help on using the changeset viewer.