Changeset 7811


Ignore:
Timestamp:
Jun 8, 2010, 9:44:03 PM (10 years ago)
Author:
steve
Message:
 
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"""
     2This is the public API to ANUGA_PARALLEL.
    13
    2 #Make parallel available as a Python package
    3 pass
     4Ideally, all tools needed to run parallel simulations should be
     5imported from this module
     6"""
    47
     8from parallel_api import distribute
     9from parallel_api import myid, numprocs, get_processor_name
     10from parallel_api import send, receive
     11from parallel_api import pypar_available, barrier, finalize
     12
     13from parallel_meshes import parallel_rectangle
     14
     15from parallel_shallow_water import Parallel_domain as Parallel_shallow_water_domain
     16from parallel_advection     import Parallel_domain as Parallel_advection_domain
     17
     18
  • trunk/anuga_core/source/anuga_parallel/interface.py

    r7562 r7811  
    22
    33Ideally, all tools needed to run paralllel simulations should be
    4 imported from this module or anuga.interface
     4imported from this module or anuga
    55"""
    66
  • trunk/anuga_core/source/anuga_parallel/test_parallel_sw_flow.py

    r7562 r7811  
    1 
    2 """Simple water flow example using ANUGA
     1"""
     2Simple water flow example using ANUGA
    33
    44Water driven up a linear slope and time varying boundary,
     
    1818import numpy as num
    1919
    20 from anuga.interface import Domain
    21 from anuga.interface import Reflective_boundary
    22 from anuga.interface import Dirichlet_boundary
    23 from anuga.interface import Time_boundary
    24 from anuga.interface import Transmissive_boundary
    25 
    26 from anuga.interface import rectangular_cross_domain
     20from anuga import Domain
     21from anuga import Reflective_boundary
     22from anuga import Dirichlet_boundary
     23from anuga import Time_boundary
     24from anuga import Transmissive_boundary
     25
     26from anuga import rectangular_cross_domain
    2727
    2828
     
    5353    # Setup computational domain and quantities
    5454    #--------------------------------------------------------------------------
    55     domain = rectangular_cross_domain(N, M)
     55    domain = rectangular_cross_domain(M, N)
    5656    domain.set_quantity('elevation', topography) # Use function for elevation
    5757    domain.set_quantity('friction', 0.0)         # Constant friction
Note: See TracChangeset for help on using the changeset viewer.