Ignore:
Timestamp:
Sep 5, 2008, 11:30:19 AM (15 years ago)
Author:
ole
Message:

Implemented run-time version of get_energy_through_cross_section and tested it.

File:
1 edited

Legend:

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

    r5729 r5736  
    10121012        associated matrices will be reused to save time.
    10131013       
    1014         The argument interpolation points must be given as either a list of absolute UTM coordinates or
    1015         a geospatial data object.
    1016         """
    1017 
    1018         # FIXME (Ole): Could do with an input check (should be generalised and used widely)
    1019         # That will check that interpolation points is either a list of points, Nx2 array, or geospatial
     1014        The argument interpolation points must be given as either a
     1015        list of absolute UTM coordinates or a geospatial data object.
     1016        """
     1017
     1018        # FIXME (Ole): Could do with an input check (should be generalised
     1019        # and used widely)
     1020        # That will check that interpolation points is either a list of
     1021        # points, Nx2 array, or geospatial
    10201022       
    10211023        # Ensure points are converted to coordinates relative to mesh origin
    1022         # FIXME (Ole): This could all be refactored using the 'change_points_geo_ref' method
    1023         # of Class geo_reference. The purpose is to make interpolation points relative
     1024        # FIXME (Ole): This could all be refactored using the
     1025        # 'change_points_geo_ref' method of Class geo_reference.
     1026        # The purpose is to make interpolation points relative
    10241027        # to the mesh origin.
    10251028        #
     
    10341037        interpolation_points = ensure_numeric(interpolation_points)
    10351038       
    1036         # Get internal (discontinuous) triangles for use with the interpolation object.
     1039       
     1040       
     1041        # Get internal (discontinuous) triangles for use with the
     1042        # interpolation object.
    10371043        x, y, vertex_values, triangles = self.get_vertex_values(xy=True,
    10381044                                                                smooth=False)
Note: See TracChangeset for help on using the changeset viewer.