Changeset 304


Ignore:
Timestamp:
Sep 15, 2004, 2:23:04 PM (20 years ago)
Author:
ole
Message:
 
File:
1 edited

Legend:

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

    r303 r304  
    7575
    7676               
    77                 #Check that this trinagle contains data point
     77                #Check that this triangle contains data point
    7878                if sigma0 >= 0 and sigma1 >= 0 and sigma2 >= 0:
    7979
    8080                    #Assign values to matrix
    81                     v_id = self.vertices[k,0]
    82                     self.matrix[i, v_id] = sigma0
     81                    j = self.vertices[k,0] #Global vertex id
     82                    self.matrix[i, j] = sigma0
    8383
    84                     v_id = self.vertices[k,1]
    85                     self.matrix[i, v_id] = sigma1
     84                    j = self.vertices[k,1] #Global vertex id
     85                    self.matrix[i, j] = sigma1
    8686
    87                     v_id = self.vertices[k,2]
    88                     self.matrix[i, v_id] = sigma2
     87                    j = self.vertices[k,2] #Global vertex id
     88                    self.matrix[i, j] = sigma2
    8989
    9090               
Note: See TracChangeset for help on using the changeset viewer.