Changeset 8256
- Timestamp:
- Nov 29, 2011, 5:46:48 PM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga_parallel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel
- Property svn:ignore
-
old new 1 1 .python_cache 2 .temp
-
- Property svn:ignore
-
trunk/anuga_core/source/anuga_parallel/parallel_abstraction.py
r8115 r8256 59 59 pypar_available = False 60 60 else: 61 import sys 62 sys.stdout = NullStream() 61 63 from pypar import * 64 sys.stdout = sys.__stdout__ 62 65 pypar_available = True -
trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py
r8227 r8256 21 21 discharge_routine method for specific subclasses) 22 22 23 Input: domain, Two points23 Input: domain, line, 24 24 """ 25 25 -
trunk/anuga_core/source/anuga_parallel/test_all.py
r8115 r8256 20 20 #List files that should be excluded from the testing process. 21 21 #E.g. if they are known to fail and under development 22 exclude_files = ['test_ parallel_distribute_domain.py']22 exclude_files = ['test_failure.py'] 23 23 24 24 # Directories that should not be searched for test files. -
trunk/anuga_core/source/anuga_parallel/test_parallel_distribute_domain.py
r7877 r8256 14 14 import os 15 15 import sys 16 17 18 19 import numpy as num 20 21 #------------------------------------------ 22 # Import pypar without the initial output 23 #------------------------------------------ 24 class NullStream: 25 def write(self,text): 26 pass 27 sys.stdout = NullStream() 16 28 import pypar 17 18 import numpy as num 19 20 21 29 sys.stdout = sys.__stdout__ 30 31 32 #------------------------------------------ 33 # anuga imports 34 #------------------------------------------ 22 35 23 36 from anuga.utilities.numerical_tools import ensure_numeric … … 35 48 36 49 37 from anuga_parallel .interfaceimport distribute, myid, numprocs, finalize50 from anuga_parallel import distribute, myid, numprocs, finalize 38 51 39 52 … … 164 177 class Test_parallel_distribute_domain(unittest.TestCase): 165 178 def test_parallel_distribute_domain(self): 166 print "Expect this test to fail if not run from the parallel directory."179 #print "Expect this test to fail if not run from the parallel directory." 167 180 result = os.system("mpirun -np %d python test_parallel_distribute_domain.py" % nprocs) 168 181 assert_(result == 0)
Note: See TracChangeset
for help on using the changeset viewer.