Changeset 1237 for inundation/ga/storm_surge/pyvolution-parallel/mesh.py
- Timestamp:
- Apr 20, 2005, 5:41:03 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution-parallel/mesh.py
r1193 r1237 67 67 """ 68 68 69 69 70 70 71 71 from Numeric import array, zeros, Int, Float, maximum, sqrt, sum … … 113 113 #a triangle to the midpoint of the side of the triangle 114 114 #closest to the centroid 115 115 d0 = sqrt(sum( (centroid-m0)**2 )) 116 116 d1 = sqrt(sum( (centroid-m1)**2 )) 117 117 d2 = sqrt(sum( (centroid-m2)**2 )) … … 129 129 130 130 self.radii[i]=self.areas[i]/(2*(a+b+c)) 131 131 132 132 133 133 #Initialise Neighbours (-1 means that it is a boundary neighbour) … … 446 446 #Note: Could be arbitrary, but nice to have 447 447 #a unique way of selecting 448 449 448 dist_A = sqrt(sum( (A-pmin)**2 )) 449 dist_B = sqrt(sum( (B-pmin)**2 )) 450 450 451 451 #Find minimal point … … 584 584 # assert self.neighbours[id,edge] < 0 585 585 # 586 587 588 586 #NOTE (Ole): I reckon this was resolved late 2004? 587 # 588 #See domain.set_boundary 589 589 590 590
Note: See TracChangeset
for help on using the changeset viewer.