Ignore:
Timestamp:
Oct 15, 2004, 9:12:12 AM (20 years ago)
Author:
duncan
Message:

if alpha is 0, don't build the D matrix

File:
1 edited

Legend:

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

    r399 r405  
    6464   
    6565    # load in the .xya file
    66     print point_file,mesh_file,alpha
    67 
    6866   
    6967    point_dict = load_xya_file(point_file)
     
    178176        """Build final coefficient matrix
    179177        """
    180 
    181         self.build_smoothing_matrix_D()
     178        if self.alpha <> 0:
     179            self.build_smoothing_matrix_D()
     180       
    182181       
    183182        if point_coordinates:
    184183            self.build_interpolation_matrix_A(point_coordinates)
    185184            AtA = dot(self.At, self.A)
    186             self.B = AtA + self.alpha*self.D
     185           
     186            if self.alpha <> 0:
     187                self.B = AtA + self.alpha*self.D
     188            else:
     189                self.B = AtA
    187190
    188191       
Note: See TracChangeset for help on using the changeset viewer.