Last change
on this file since 3289 was
2225,
checked in by steve, 19 years ago
|
Making meribula a production directory
|
File size:
924 bytes
|
Line | |
---|
1 | import sys |
---|
2 | from os import sep |
---|
3 | sys.path.append('..'+sep+'pyvolution') |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | import least_squares |
---|
9 | |
---|
10 | alpha = 5 |
---|
11 | mesh_file = 'merimbula_10785.tsh' |
---|
12 | point_file = 'meri0.xya' |
---|
13 | mesh_output_file = 'merimbula_10785_%g.tsh'%alpha |
---|
14 | |
---|
15 | print mesh_output_file |
---|
16 | |
---|
17 | |
---|
18 | least_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 | |
---|
26 | from shallow_water import Domain |
---|
27 | from pmesh2domain import pmesh_to_domain_instance |
---|
28 | from util import file_function, Polygon_function, read_polygon |
---|
29 | from Numeric import zeros, Float |
---|
30 | |
---|
31 | #------- |
---|
32 | # Domain |
---|
33 | filename = mesh_output_file |
---|
34 | print 'Creating domain from', filename |
---|
35 | domain = pmesh_to_domain_instance(filename, Domain) |
---|
36 | print "Number of triangles = ", len(domain) |
---|
Note: See
TracBrowser
for help on using the repository browser.