Changeset 6049


Ignore:
Timestamp:
Dec 7, 2008, 10:11:24 AM (16 years ago)
Author:
steve
Message:

Small change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga_parallel/test_parallel_sw.py

    r6048 r6049  
    1515import os
    1616import sys
    17 import print_stats
     17import pypar
    1818
    1919from Numeric import allclose, array, zeros, Float, take, nonzero
    2020
    2121from anuga.pmesh.mesh_interface import create_mesh_from_regions
     22
    2223from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
     24from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_to_domain_instance
     25
    2326from anuga.utilities.numerical_tools import ensure_numeric
    24 from anuga.utilities.polygon import is_inside_polygon
    25 from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_to_domain_instance
    26 from anuga.utilities.util_ext import double_precision
    27 from anuga.utilities.norms import l1_norm, l2_norm, linf_norm
     27from anuga.utilities.util_ext        import double_precision
     28from anuga.utilities.norms           import l1_norm, l2_norm, linf_norm
    2829
    2930from anuga.shallow_water import Domain
     
    3334from anuga.shallow_water import Transmissive_boundary
    3435
    35 import pypar
    36 
    37 from parallel_api import distribute, myid, numprocs
     36
     37from anuga_parallel.parallel_api import distribute, myid, numprocs
    3838
    3939
     
    164164        print "Expect this test to fail if not run from the parallel directory."
    165165        result = os.system("mpirun -np %d python test_parallel_sw.py" % nprocs)
    166         print 'result ',result
    167166        assert_(result == 0)
    168167
Note: See TracChangeset for help on using the changeset viewer.