Changeset 6621


Ignore:
Timestamp:
Mar 26, 2009, 8:16:02 AM (16 years ago)
Author:
rwilson
Message:

Fixed problem crashing in verbose print code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/interpolate.py

    r6545 r6621  
    835835                raise msg
    836836
     837            # Ensure 'mesh_boundary_polygon' is defined
     838            mesh_boundary_polygon = None
     839           
    837840            if triangles is not None and vertex_coordinates is not None:
    838841                # Check that all interpolation points fall within
     
    895898                                'requires the latter.')
    896899
    897             # Plot boundary and interpolation points
    898             if verbose is True:
     900            # Plot boundary and interpolation points,
     901            # but only if if 'mesh_boundary_polygon' has data.
     902            if verbose is True and mesh_boundary_polygon is not None:
    899903                import sys
    900904                if sys.platform == 'win32':
Note: See TracChangeset for help on using the changeset viewer.