Changeset 3776 for anuga_core/source/anuga_parallel/parallel_api.py
- Timestamp:
- Oct 13, 2006, 2:43:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/parallel_api.py
r3635 r3776 5 5 6 6 # Parallelism 7 # The Python-MPI interface 8 from pypar import size, rank, get_processor_name, finalize, send, receive 9 #from anuga_parallel.parallel_abstraction import size, rank, get_processor_name, finalize #,send, receive 7 8 # The abstract Python-MPI interface 9 from anuga_parallel.parallel_abstraction import size, rank, get_processor_name 10 from anuga_parallel.parallel_abstraction import finalize, send, receive 11 from anuga_parallel.parallel_abstraction import pypar_available 12 13 # Mesh partitioning 10 14 from anuga_parallel.pmesh_divide import pmesh_divide_metis 11 15 from anuga_parallel.build_submesh import build_submesh 12 16 from anuga_parallel.build_local import build_local_mesh 13 from anuga_parallel.build_commun import send_submesh, rec_submesh, extract_hostmesh 14 from anuga_parallel.parallel_shallow_water import Parallel_Domain 17 18 # ANUGA parallel engine (only load if pypar can) 19 if pypar_available: 20 from anuga_parallel.build_commun import send_submesh 21 from anuga_parallel.build_commun import rec_submesh 22 from anuga_parallel.build_commun import extract_hostmesh 23 from anuga_parallel.parallel_shallow_water import Parallel_Domain 15 24 16 25 … … 30 39 """ Distribute the domain to all processes 31 40 """ 41 42 if not pypar_available: return domain # Bypass 32 43 33 44 # For some obscure reason this communication must happen prior to
Note: See TracChangeset
for help on using the changeset viewer.