- Timestamp:
- Sep 27, 2013, 10:36:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/run_parallel_gate_operator.py
r8877 r8994 2 2 import sys 3 3 4 from anuga.utilities.system_tools import get_pathname_from_package5 from anuga.geometry.polygon_function import Polygon_function4 #from anuga.utilities.system_tools import get_pathname_from_package 5 #from anuga.geometry.polygon_function import Polygon_function 6 6 7 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross8 from anuga.abstract_2d_finite_volumes.quantity import Quantity7 #from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 8 #from anuga.abstract_2d_finite_volumes.quantity import Quantity 9 9 10 10 import anuga … … 16 16 import numpy as num 17 17 18 from anuga _parallelimport distribute, myid, numprocs, finalize, barrier18 from anuga import distribute, myid, numprocs, finalize, barrier 19 19 20 from parallel_operator_factoryimport Inlet_operator, Boyd_box_operator20 from anuga import Inlet_operator, Boyd_box_operator 21 21 22 22 … … 56 56 return z 57 57 58 59 """test_that_culvert_runs_rating 60 61 This test exercises the culvert and checks values outside rating curve 62 are dealt with 63 """ 64 65 path = get_pathname_from_package('anuga.culvert_flows') 58 66 59 67 60 length = 40. … … 73 66 if myid == 0: 74 67 75 points, vertices, boundary = rectangular_cross(int(length/dx),76 int(width/dy),77 len1=length,78 len2=width)68 points, vertices, boundary = anuga.rectangular_cross(int(length/dx), 69 int(width/dy), 70 len1=length, 71 len2=width) 79 72 domain = anuga.Domain(points, vertices, boundary) 80 domain.set_name( 'run_gate_operator') # Output name73 domain.set_name() # Output name 81 74 domain.set_flow_algorithm('2_0') 82 75
Note: See TracChangeset
for help on using the changeset viewer.