Changeset 3616


Ignore:
Timestamp:
Sep 18, 2006, 5:37:19 PM (18 years ago)
Author:
ole
Message:

Got Karratha running again.

Files:
1 added
4 edited

Legend:

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

    r3560 r3616  
    726726        str += 'Mesh statistics:\n'
    727727        str += '  Number of triangles = %d\n' %self.number_of_elements
    728         str += '  Extent:\n'
     728        str += '  Extent [m]:\n'
    729729        str += '    x in [%f, %f]\n' %(min(x), max(x))
    730730        str += '    y in [%f, %f]\n' %(min(y), max(y))
    731         str += '  Areas:\n'
     731        str += '  Areas [m^2]:\n'
    732732        str += '    A in [%f, %f]\n' %(min(areas), max(areas))
    733733        str += '    number of distinct areas: %d\n' %(len(areas))       
     
    764764               
    765765                     
    766         str += 'Boundary:\n'
    767         str += '  Number of boundary segments == %d\n' %(len(self.boundary))
    768         str += '  Boundary tags == %s\n' %self.get_boundary_tags() 
     766        str += '  Boundary:\n'
     767        str += '    Number of boundary segments == %d\n' %(len(self.boundary))
     768        str += '    Boundary tags == %s\n' %self.get_boundary_tags() 
    769769        str += '------------------------------------------------\n'
    770770       
  • anuga_core/source/anuga/coordinate_transforms/redfearn.py

    r3614 r3616  
    178178    Output
    179179
    180     zone:   UTM zone for converted points
    181180    points: List of converted points
     181    zone:   Common UTM zone for converted points
    182182
    183183
     
    205205
    206206
    207     return old_geo.get_zone(), utm_points
     207    return utm_points, old_geo.get_zone()
    208208
    209209
  • anuga_core/source/anuga/coordinate_transforms/test_redfearn.py

    r3614 r3616  
    229229       
    230230        points = [[lat_gong, lon_gong], [lat_2, lon_2]]
    231         zone, points = convert_points_from_latlon_to_utm(points)
     231        points, zone = convert_points_from_latlon_to_utm(points)
    232232
    233233        assert allclose(points[0][0], 308728.009)
     
    255255
    256256        try:
    257             zone, points = convert_points_from_latlon_to_utm(points)            
     257            points, zone = convert_points_from_latlon_to_utm(points)           
    258258        except ANUGAError:
    259259            pass
     
    277277
    278278        try:
    279             zone, points = convert_points_from_latlon_to_utm(points)                        
     279            points, zone = convert_points_from_latlon_to_utm(points)           
    280280        except ANUGAError:
    281281            pass
  • anuga_core/source/anuga/pmesh/mesh_interface.py

    r3541 r3616  
    6565    # check the segment indexes - throw an error if they are out of bounds
    6666    #(DSG) Yes!
     67
    6768   
    6869    #In addition I reckon the polygons could be of class Geospatial_data
     
    7374    #Note, Both poly's have the same geo_ref, therefore don't take into account
    7475    # geo_ref
     76
     77    # Simple check
     78    bounding_polygon = ensure_numeric(bounding_polygon, Float)
     79    msg = 'Bounding polygon must be a list of points or an Nx2 array'
     80    assert len(bounding_polygon.shape) == 2, msg
     81    assert bounding_polygon.shape[1] == 2, msg   
     82
     83
     84    #
    7585    if interior_regions is not None:       
    7686        # Test that all the interior polygons are inside the bounding_poly
     
    8898    # Resolve geo referencing       
    8999    if mesh_geo_reference is None:
    90         bounding_polygon = ensure_numeric(bounding_polygon, Float)
    91100        xllcorner = min(bounding_polygon[:,0])
    92101        yllcorner = min(bounding_polygon[:,1])   
Note: See TracChangeset for help on using the changeset viewer.