Changeset 303


Ignore:
Timestamp:
Sep 15, 2004, 1:57:28 PM (20 years ago)
Author:
ole
Message:

comments

Location:
inundation/ga/storm_surge/pyvolution
Files:
2 edited

Legend:

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

    r302 r303  
    1616        function values at vertices to function values at data points
    1717
     18        Inputs:
    1819       
     20          vertex_coordinates: List of coordinate pairs [xi, eta] of points
     21          constituting mesh (or a an m x 2 Numeric array)
     22       
     23          triangles: List of 3-tuples (or a Numeric array) of
     24          integers representing indices of all vertices in the mesh.
     25
     26          data: List of coordinate pairs [x, y] of data points
     27          (or an nx2 Numeric array)
     28         
    1929        """
    2030
     
    2737        triangles = array(triangles).astype(Int)               
    2838       
    29        
    3039        #Build underlying mesh
    3140        Mesh.__init__(self, vertex_coordinates, triangles)
     
    3645        n = data.shape[0]               #Number of data points         
    3746
    38         self.matrix = zeros( (n,m), Float)
     47        self.matrix = zeros((n,m), Float)
    3948
    4049        #Compute matrix elements
  • inundation/ga/storm_surge/pyvolution/mesh.py

    r297 r303  
    2020
    2121    To instantiate:
    22        Mesh(points, vertices)
     22       Mesh(coordinates, vertices)
    2323
    2424    where
    2525
    26       points is either a list of 2-tuples or an Mx2 Numeric array of
     26      coordinates is either a list of 2-tuples or an Mx2 Numeric array of
    2727      floats representing all x, y coordinates in the mesh.
    2828
Note: See TracChangeset for help on using the changeset viewer.