Changeset 6049
 Timestamp:
 Dec 7, 2008, 10:11:24 AM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga_parallel/test_parallel_sw.py
r6048 r6049 15 15 import os 16 16 import sys 17 import p rint_stats17 import pypar 18 18 19 19 from Numeric import allclose, array, zeros, Float, take, nonzero 20 20 21 21 from anuga.pmesh.mesh_interface import create_mesh_from_regions 22 22 23 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 24 from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_to_domain_instance 25 23 26 from 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 27 from anuga.utilities.util_ext import double_precision 28 from anuga.utilities.norms import l1_norm, l2_norm, linf_norm 28 29 29 30 from anuga.shallow_water import Domain … … 33 34 from anuga.shallow_water import Transmissive_boundary 34 35 35 import pypar 36 37 from parallel_api import distribute, myid, numprocs 36 37 from anuga_parallel.parallel_api import distribute, myid, numprocs 38 38 39 39 … … 164 164 print "Expect this test to fail if not run from the parallel directory." 165 165 result = os.system("mpirun np %d python test_parallel_sw.py" % nprocs) 166 print 'result ',result167 166 assert_(result == 0) 168 167
Note: See TracChangeset
for help on using the changeset viewer.