Ignore:
Timestamp:
Aug 12, 2012, 6:36:21 PM (13 years ago)
Author:
steve
Message:

Small memory gains by changing from flatten() to flat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/pmesh/mesh_interface.py

    r8340 r8505  
    243243
    244244            # Test that we have a polygon
    245             if len(num.array(interior_polygon).flatten()) < 6:
     245            if len(num.array(interior_polygon).flat) < 6:
    246246                msg = 'Interior hole polygon %s has too few (<3) points.\n' \
    247247                    %(str(interior_polygon))
Note: See TracChangeset for help on using the changeset viewer.