source: inundation/ga/storm_surge/steve/run_merimbula.py @ 1266

Last change on this file since 1266 was 1264, checked in by steve, 20 years ago

Using vpython faces to speed up visualisation

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