Last change
on this file since 5263 was
3514,
checked in by duncan, 18 years ago
|
Hi all,
I'm doing a change in the anuga structure, moving the code to
\anuga_core\source\anuga
After you have done an svn update, the PYTHONPATH has to be changed to;
PYTHONPATH = anuga_core/source/
This is part of changes required to make installation of anuga quicker and reducing the size of our sandpits.
If any imports are broken, try fixing them. With adding anuga. to them for example. If this seems to have really broken things, email/phone me.
Cheers
Duncan
|
File size:
740 bytes
|
Line | |
---|
1 | import sys |
---|
2 | from os import sep |
---|
3 | sys.path.append('..'+sep+'pyvolution') |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | alpha = 1 |
---|
9 | mesh_file = 'merimbula_10785.tsh' |
---|
10 | point_file = 'meri0.xya' |
---|
11 | mesh_output_file = 'merimbula_10785_%g.tsh'%alpha |
---|
12 | |
---|
13 | print mesh_output_file |
---|
14 | |
---|
15 | from shallow_water import Domain |
---|
16 | from pmesh2domain import pmesh_to_domain_instance |
---|
17 | from anuga.pyvolution.util import file_function, Polygon_function, read_polygon |
---|
18 | from Numeric import zeros, Float, maximum, minimum |
---|
19 | |
---|
20 | #------- |
---|
21 | # Domain |
---|
22 | filename = mesh_output_file |
---|
23 | print 'Creating domain from', filename |
---|
24 | domain = pmesh_to_domain_instance(filename, Domain) |
---|
25 | print "Number of triangles = ", len(domain) |
---|
26 | |
---|
27 | |
---|
28 | from realtime_visualisation_new import * |
---|
29 | |
---|
30 | surface = Surface(domain, scale_z = 1.0/50.0) |
---|
31 | |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.