Ignore:
Timestamp:
Jan 19, 2009, 6:49:40 AM (16 years ago)
Author:
ole
Message:

Work on Patong and some diagnostic output

File:
1 edited

Legend:

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

    r6189 r6192  
    392392
    393393        if boundary_polygon is not None:
    394             #removes sts points that do not lie on boundary
     394            # Remove sts points that do not lie on boundary
    395395            # FIXME(Ole): Why don't we just remove such points from the list of points and associated data?
    396396            # I am actually convinced we can get rid of neighbour_gauge_id altogether as the sts file is produced using the ordering file.
     
    404404            for i in range(len(boundary_polygon)):
    405405                for j in range(len(x)):
    406                     if num.allclose(vertex_coordinates[j],boundary_polygon[i],1e-4):
     406                    if num.allclose(vertex_coordinates[j],
     407                                    boundary_polygon[i], 1e-4):
    407408                        #FIXME:
    408409                        #currently gauges lat and long is stored as float and
     
    475476        if boundary_polygon is not None:
    476477            #removes sts points that do not lie on boundary
    477             quantities[name] = num.take(quantities[name],gauge_id,1)
     478            quantities[name] = num.take(quantities[name], gauge_id, 1)
    478479           
    479480    # Close sww, tms or sts netcdf file         
     
    488489        #vertex coordinates is position of urs gauges
    489490
     491    if verbose:
     492        print 'Call interpolation function'
    490493    # Return Interpolation_function instance as well as
    491494    # starttime for use to possible modify that of domain
Note: See TracChangeset for help on using the changeset viewer.