source: production/merimbula_2005/run_least_squares_merimbula.py @ 2240

Last change on this file since 2240 was 2225, checked in by steve, 19 years ago

Making meribula a production directory

File size: 924 bytes
RevLine 
[2225]1import sys
2from os import sep
3sys.path.append('..'+sep+'pyvolution')
4
5
6
7
8import least_squares
9
10alpha = 5
11mesh_file = 'merimbula_10785.tsh'
12point_file = 'meri0.xya'
13mesh_output_file = 'merimbula_10785_%g.tsh'%alpha
14
15print mesh_output_file
16
17
18least_squares.fit_to_mesh_file(mesh_file, point_file, mesh_output_file,
19                     alpha=alpha, verbose= True,
20                     expand_search = False,
21                     data_origin = None,
22                     mesh_origin = None,
23                     precrop = False)
24
25
26from shallow_water import Domain
27from pmesh2domain import pmesh_to_domain_instance
28from util import file_function, Polygon_function, read_polygon
29from Numeric import zeros, Float
30
31#-------
32# Domain
33filename = mesh_output_file
34print 'Creating domain from', filename
35domain = pmesh_to_domain_instance(filename, Domain)
36print "Number of triangles = ", len(domain)
Note: See TracBrowser for help on using the repository browser.