Changeset 334 for inundation/ga/storm_surge/pyvolution
- Timestamp:
- Sep 21, 2004, 5:42:10 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/least_squares.py
r333 r334 146 146 self.AtA = dot(self.At, self.A) 147 147 148 149 #FIXME: Remember to re-introduce the 1/n factor in the 150 #interpolation term 148 151 149 152 def build_smoothing_matrix_D(self): -
inundation/ga/storm_surge/pyvolution/test_mesh.py
r322 r334 128 128 129 129 130 131 130 #Let x be the centroid of triangle abc. 132 131 #Test that areas of the three triangles axc, cxb, and bxa are equal. 133 134 132 points = [a, b, c, centroid] 135 133 vertices = [[0,3,2], [2,3,1], [1,3,0]] … … 247 245 a = [0.0, 0.0] 248 246 b = [0.0, 2.0] 249 c = [2.0, 0.0]247 c = [2.0, 0.0] 250 248 d = [0.0, 4.0] 251 249 e = [2.0, 2.0] 252 f = [4.0, 0.0]250 f = [4.0, 0.0] 253 251 254 252 points = [a, b, c, d, e, f]
Note: See TracChangeset
for help on using the changeset viewer.