Changeset 7846 for anuga_validation/performance_tests/run_profile2.py
- Timestamp:
- Jun 16, 2010, 8:23:42 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/performance_tests/run_profile2.py
r5320 r7846 11 11 # Module imports 12 12 # 13 from anuga.shallow_water import Domain, Reflective_boundary,\ 14 Dirichlet_boundary,\ 15 Transmissive_boundary, Time_boundary 16 17 from mesh_factory import rectangular 18 from Numeric import array 13 import anuga 14 from numpy import array 19 15 20 16 … … 27 23 print 'Creating domain' 28 24 #Create basic mesh 29 points, vertices, boundary = rectangular(N, N)25 points, vertices, boundary = anuga.rectangular(N, N) 30 26 31 27 #Create shallow water domain 32 domain = Domain(points, vertices, boundary)28 domain = anuga.Domain(points, vertices, boundary) 33 29 domain.default_order = 2 34 30 domain.set_quantities_to_be_stored(None) … … 46 42 # Boundary conditions 47 43 # 48 Br = Reflective_boundary(domain)44 Br = anuga.Reflective_boundary(domain) 49 45 domain.set_boundary({'left': Br, 'right': Br, 'bottom': Br, 'top': Br}) 50 46
Note: See TracChangeset
for help on using the changeset viewer.