Changeset 3590
- Timestamp:
- Sep 14, 2006, 10:39:14 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/test_parallel_sw_runup.py
r3589 r3590 12 12 #------------------------------------------------------------------------------ 13 13 14 from anuga.pmesh.mesh_interface import create_mesh_from_regions 14 15 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 15 16 from anuga.shallow_water import Domain … … 40 41 #-------------------------------------------------------------------------- 41 42 43 42 44 points, vertices, boundary = rectangular_cross(10, 10) # Basic mesh 45 domain = Domain(points, vertices, boundary) # Create domain 43 46 44 domain = Domain(points, vertices, boundary) # Create domain 47 48 # Unstructured mesh 49 #polygon = [[1,1],[0,1],[0,0],[1,0]] 50 #meshname = 'runup.msh' 51 #create_mesh_from_regions(polygon, 52 # boundary_tags={'top': [0], 53 # 'left': [1], 54 # 'bottom': [2], 55 # 'right': [3]}, 56 # maximum_triangle_area=0.01, 57 # filename=meshname) 58 #domain = Domain(meshname, use_cache=True, verbose = True) 59 60 61 45 62 domain.set_name('runup') # Set sww filename 46 63
Note: See TracChangeset
for help on using the changeset viewer.