Changeset 9301
- Timestamp:
- Aug 13, 2014, 5:38:21 PM (11 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/compile_all.py
r9290 r9301 29 29 #-------------------------------------------------- 30 30 # Compiling anuga_1d code 31 # excluded for the time being 31 32 #-------------------------------------------------- 32 os.chdir('source') 33 os.chdir('anuga_1d') 33 #os.chdir('anuga_1d') 34 34 35 35 36 t0 = time.time()36 #t0 = time.time() 37 37 38 38 # Attempt to compile all ANUGA_1D extensions 39 execfile('compile_all.py')39 #execfile('compile_all.py') 40 40 41 41 … … 52 52 print '-----------------------------------------------' 53 53 54 54 import pypar 55 55 56 56 # Attempt to compile Metis for use with anuga_parallel … … 85 85 86 86 except: 87 print 'pymetis could not compile '87 print 'pymetis could not compile as pypar not installed' 88 88 89 89 … … 92 92 93 93 #-------------------------------------------------- 94 # Compiling anuga_parallel code94 # Compiling pypar_extras 95 95 #-------------------------------------------------- 96 96 … … 117 117 raise Exception, msg 118 118 else: 119 msg = 'Compiled pypar_extras succes fully.'119 msg = 'Compiled pypar_extras successfully.' 120 120 print msg 121 121 except: -
trunk/anuga_core/source/anuga/__init__.py
r9294 r9301 87 87 from anuga_parallel.parallel_api import send, receive 88 88 from anuga_parallel.parallel_api import pypar_available, barrier, finalize 89 from anuga_parallel.parallel_api import sequential_distribute_dump 90 from anuga_parallel.parallel_api import sequential_distribute_load 89 90 if pypar_available: 91 from anuga_parallel.parallel_api import sequential_distribute_dump 92 from anuga_parallel.parallel_api import sequential_distribute_load 91 93 92 94 -
trunk/anuga_core/source/anuga/utilities/parallel_abstraction.py
r9261 r9301 65 65 from pypar import * 66 66 sys.stdout = sys.__stdout__ 67 pypar_available = True 67 pypar_available = True -
trunk/anuga_core/source/anuga_parallel/parallel_api.py
r9294 r9301 11 11 from anuga.utilities.parallel_abstraction import pypar_available, barrier 12 12 13 from anuga_parallel.sequential_distribute import sequential_distribute_dump14 from anuga_parallel.sequential_distribute import sequential_distribute_load15 16 13 17 14 18 15 # ANUGA parallel engine (only load if pypar can) 19 16 if pypar_available: 17 from anuga_parallel.sequential_distribute import sequential_distribute_dump 18 from anuga_parallel.sequential_distribute import sequential_distribute_load 19 20 20 from anuga_parallel.distribute_mesh import send_submesh 21 21 from anuga_parallel.distribute_mesh import rec_submesh -
trunk/anuga_core/test_all.py
r9241 r9301 16 16 17 17 18 os.chdir(buildroot)19 os.chdir('source')20 os.chdir('anuga_1d')21 print22 print '======================= anuga_1d tests ================================='23 print 'Changing to', os.getcwd() # This is now different from buildroot24 execfile('test_all.py')18 #os.chdir(buildroot) 19 #os.chdir('source') 20 #os.chdir('anuga_1d') 21 #print 22 #print '======================= anuga_1d tests =================================' 23 #print 'Changing to', os.getcwd() # This is now different from buildroot 24 #xecfile('test_all.py') 25 25 26 26 27 27 28 28 # Try to run parallel tests if pypar is installed 29 30 try: 31 import pypar 32 except: 33 print 'anuga_parallel tests not run as pypar not installed' 34 else: 29 from anuga import pypar_available 30 31 if pypar_available: 35 32 os.chdir(buildroot) 36 33 os.chdir('source') … … 40 37 print 'Changing to', os.getcwd() 41 38 execfile('test_all.py') 39 else: 40 print 'anuga_parallel tests not run as pypar not installed' 42 41 43 42
Note: See TracChangeset
for help on using the changeset viewer.