Changeset 467 for inundation/ga/storm_surge/pyvolution/least_squares.py
- Timestamp:
- Oct 29, 2004, 3:07:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/least_squares.py
r463 r467 18 18 """ 19 19 20 20 21 #FIXME: Current implementation uses full matrices and a general solver. 21 22 #Later on we may consider using sparse techniques … … 50 51 return a, b 51 52 52 ALPHA_INITIAL = 0.001 53 54 def fit_to_mesh_file(mesh_file, point_file, mesh_output_file, alpha= ALPHA_INITIAL): 53 54 DEFAULT_ALPHA = 0.001 55 56 57 def fit_to_mesh_file(mesh_file, point_file, mesh_output_file, alpha=DEFAULT_ALPHA): 55 58 """ 56 59 Given a mesh file (tsh) and a point attribute file (xya), fit … … 108 111 point_coordinates, 109 112 point_attributes, 110 alpha = ALPHA_INITIAL):113 alpha = DEFAULT_ALPHA): 111 114 """ 112 115 Fit a smooth surface to a trianglulation, … … 144 147 triangles, 145 148 point_coordinates = None, 146 alpha = ALPHA_INITIAL):149 alpha = DEFAULT_ALPHA): 147 150 148 151 … … 512 515 alpha = sys.argv[4] 513 516 else: 514 alpha = ALPHA_INITIAL517 alpha = DEFAULT_ALPHA 515 518 fit_to_mesh_file(mesh_file, point_file, mesh_output_file, alpha) 516 519
Note: See TracChangeset
for help on using the changeset viewer.