Changeset 7811
- Timestamp:
- Jun 8, 2010, 9:44:03 PM (15 years ago)
- Location:
- trunk/anuga_core/source/anuga_parallel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/__init__.py
r7449 r7811 1 """ 2 This is the public API to ANUGA_PARALLEL. 1 3 2 #Make parallel available as a Python package 3 pass 4 Ideally, all tools needed to run parallel simulations should be 5 imported from this module 6 """ 4 7 8 from parallel_api import distribute 9 from parallel_api import myid, numprocs, get_processor_name 10 from parallel_api import send, receive 11 from parallel_api import pypar_available, barrier, finalize 12 13 from parallel_meshes import parallel_rectangle 14 15 from parallel_shallow_water import Parallel_domain as Parallel_shallow_water_domain 16 from parallel_advection import Parallel_domain as Parallel_advection_domain 17 18 -
trunk/anuga_core/source/anuga_parallel/interface.py
r7562 r7811 2 2 3 3 Ideally, all tools needed to run paralllel simulations should be 4 imported from this module or anuga .interface4 imported from this module or anuga 5 5 """ 6 6 -
trunk/anuga_core/source/anuga_parallel/test_parallel_sw_flow.py
r7562 r7811 1 2 """Simple water flow example using ANUGA1 """ 2 Simple water flow example using ANUGA 3 3 4 4 Water driven up a linear slope and time varying boundary, … … 18 18 import numpy as num 19 19 20 from anuga .interfaceimport Domain21 from anuga .interfaceimport Reflective_boundary22 from anuga .interfaceimport Dirichlet_boundary23 from anuga .interfaceimport Time_boundary24 from anuga .interfaceimport Transmissive_boundary25 26 from anuga .interfaceimport rectangular_cross_domain20 from anuga import Domain 21 from anuga import Reflective_boundary 22 from anuga import Dirichlet_boundary 23 from anuga import Time_boundary 24 from anuga import Transmissive_boundary 25 26 from anuga import rectangular_cross_domain 27 27 28 28 … … 53 53 # Setup computational domain and quantities 54 54 #-------------------------------------------------------------------------- 55 domain = rectangular_cross_domain( N, M)55 domain = rectangular_cross_domain(M, N) 56 56 domain.set_quantity('elevation', topography) # Use function for elevation 57 57 domain.set_quantity('friction', 0.0) # Constant friction
Note: See TracChangeset
for help on using the changeset viewer.