Changeset 8022


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

Setting parallel code to run on a single processor without pypar

Location:
trunk/anuga_core/source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/advection/__init__.py

    r7876 r8022  
    88sys.path += __path__
    99
     10from advection import Advection_Domain
    1011
    1112
    1213
     14
     15
  • 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       
  • trunk/anuga_core/source/anuga_parallel/parallel_meshes.py

    r7447 r8022  
    1515
    1616import sys
    17 #from Numeric import array, zeros, Float, Int, ones, sum
    18 
    1917import numpy as num
     18
     19from anuga_parallel.parallel_abstraction import pypar_available
    2020import pypar
    2121
     
    2323
    2424
    25 
     25if pypar_available
    2626
    2727
Note: See TracChangeset for help on using the changeset viewer.