Ignore:
Timestamp:
Mar 24, 2005, 4:48:33 PM (20 years ago)
Author:
ole
Message:

Improved optimisation in sww2asc (happy Easter everyone!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/data_manager.py

    r1144 r1145  
    10681068   
    10691069    """
    1070     from Numeric import array, Float, concatenate, NewAxis, zeros
     1070    from Numeric import array, Float, concatenate, NewAxis, zeros,\
     1071         sometrue
     1072   
    10711073
    10721074    #FIXME: Should be variable
     
    12091211    #Get bounding polygon from mesh
    12101212    P = interp.mesh.get_boundary_polygon()
    1211 
    1212     #print grid_points
    1213     #print grid_values
    1214 
    12151213    inside_indices = inside_polygon(grid_points, P)
    12161214   
     
    12221220            index = (nrows-i-1)*ncols+j
    12231221           
    1224             #if inside_polygon(grid_points[index], P):
    1225             if index in inside_indices:
     1222            if sometrue(inside_indices == index):
    12261223                ascid.write('%f ' %grid_values[index])               
    12271224            else:
Note: See TracChangeset for help on using the changeset viewer.