Ignore:
Timestamp:
Sep 20, 2010, 8:46:00 PM (13 years ago)
Author:
steve
Message:

Setting parallel code to run on a single processor without pypar

Location:
trunk/anuga_core/source/anuga_parallel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel

    • Property svn:ignore set to
      .python_cache
  • trunk/anuga_core/source/anuga_parallel/__init__.py

    r7811 r8022  
    1111from parallel_api import pypar_available, barrier, finalize
    1212
    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
     13if pypar_available:
     14    from parallel_meshes import parallel_rectangle
     15    from parallel_shallow_water import Parallel_domain as Parallel_shallow_water_domain
     16    from parallel_advection     import Parallel_domain as Parallel_advection_domain
     17else:
     18    from anuga import rectangular_cross as parallel_rectangle
     19    from anuga import Domain as Parallel_shallow_water_domain
     20    from anuga.advection import Advection_Domain as Parallel_advection_domain
    1721
    1822
     23       
Note: See TracChangeset for help on using the changeset viewer.