Changeset 9503
- Timestamp:
- Jan 27, 2015, 8:57:32 AM (10 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/compile_all.py
r9362 r9503 41 41 42 42 os.chdir(buildroot) 43 print 43 44 print 'Changing to', os.getcwd() 44 45 … … 48 49 49 50 try: 51 print 50 52 print '-----------------------------------------------' 51 53 print 'Attempting to compile Metis' … … 56 58 # Attempt to compile Metis for use with anuga_parallel 57 59 os.chdir('source') 58 os.chdir('anuga_parallel') 60 os.chdir('anuga') 61 os.chdir('parallel') 59 62 os.chdir('pymetis') 60 63 … … 85 88 86 89 except: 90 print 87 91 print 'pymetis could not compile as pypar not installed' 88 92 … … 104 108 105 109 os.chdir('source') 106 os.chdir('anuga_parallel') 110 os.chdir('anuga') 111 os.chdir('parallel') 107 112 os.chdir('pypar_extras') 108 113 … … 120 125 print msg 121 126 except: 122 print 'anuga _parallel code not compiled as pypar not installed'127 print 'anuga.parallel code not compiled as pypar not installed' 123 128 124 129 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_boyd_box_operator.py
r9501 r9503 196 196 boyd_box0.print_statistics() 197 197 198 # if parallel:199 # factory = Parallel_operator_factory(domain, verbose = True)200 #201 # inlet0 = factory.inlet_operator_factory(line0, Q0)202 # inlet1 = factory.inlet_operator_factory(line1, Q1)203 #204 # boyd_box0 = factory.boyd_box_operator_factory(end_points=[[9.0, 2.5],[19.0, 2.5]],205 # losses=1.5,206 # width=1.5,207 # apron=5.0,208 # use_momentum_jet=True,209 # use_velocity_head=False,210 # manning=0.013,211 # verbose=False)212 #213 # else:214 # inlet0 = Inlet_operator(domain, line0, Q0)215 # inlet1 = Inlet_operator(domain, line1, Q1)216 #217 # # Enquiry point [ 19. 2.5] is contained in two domains in 4 proc case218 # boyd_box0 = Boyd_box_operator(domain,219 # end_points=[[9.0, 2.5],[19.0, 2.5]],220 # losses=1.5,221 # width=1.5,222 # apron=5.0,223 # use_momentum_jet=True,224 # use_velocity_head=False,225 # manning=0.013,226 # verbose=False)227 228 #######################################################################229 198 230 199 ##----------------------------------------------------------------------- … … 246 215 boyd_box0.print_timestepping_statistics() 247 216 248 #for i in range(samples):249 # if tri_ids[i] >= 0:250 # if verbose: print 'P%d tri %d, value = %s' %(myid, i, stage.centroid_values[tri_ids[i]])251 217 252 218 sys.stdout.flush() … … 311 277 assert(success) 312 278 279 313 280 return control_data 314 281 -
trunk/anuga_core/source/anuga/test_all.py
r9490 r9503 33 33 34 34 # Directories that should not be searched for test files. 35 exclude_dirs = ['shallow_water_balanced' , #'damage_modelling', # Special requirements35 exclude_dirs = ['shallow_water_balanced' , 'parallel', # Special requirements 36 36 '.svn', # subversion 37 37 'props', 'wcprops', 'prop-base', 'text-base', 'tmp'] -
trunk/anuga_core/source/anuga_parallel/__init__.py
r9502 r9503 6 6 """ 7 7 8 # Lets import the standard anuga interface9 #from anuga import *10 11 12 from parallel_api import distribute13 from parallel_api import myid, numprocs, get_processor_name14 from parallel_api import send, receive15 from parallel_api import pypar_available, barrier, finalize16 17 if pypar_available:18 from parallel_meshes import parallel_rectangle19 from parallel_shallow_water import Parallel_domain as Parallel_shallow_water_domain20 from parallel_advection import Parallel_domain as Parallel_advection_domain21 from parallel_operator_factory import Inlet_operator, Boyd_box_operator, Boyd_pipe_operator22 from parallel_operator_factory import Weir_orifice_trapezoid_operator #added by PM 22/10/201323 else:24 from anuga import rectangular_cross as parallel_rectangle25 from anuga import Domain as Parallel_shallow_water_domain26 from anuga.advection import Advection_Domain as Parallel_advection_domain27 8 28 9 29 10 11 from anuga.parallel import * 12 13 print '#'+50*'=' 14 print '# ' 15 print '# WARNING ' 16 print '# ' 17 print '# anuga_parallel moved to anuga.parallel ' 18 print '# ' 19 print '# Change your anuga_parallel imports' 20 print '#'+50*'=' 21 22 23 24 -
trunk/anuga_core/source/setup.cfg
r9500 r9503 1 1 2 2 [pytest] 3 addopts = --ignore=setup.py -- cov-report term --cov .3 addopts = --ignore=setup.py --ignore=anuga/parallel --cov-report term --cov . -
trunk/anuga_core/test_all.py
r9433 r9503 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 #xecfile('test_all.py')25 26 18 27 19 … … 32 24 os.chdir(buildroot) 33 25 os.chdir('source') 34 os.chdir('anuga_parallel') 26 os.chdir('anuga') 27 os.chdir('parallel') 35 28 os.chdir('test') 36 29 print 37 print '===================== anuga _parallel tests =========================='30 print '===================== anuga parallel tests ==========================' 38 31 print 'Changing to', os.getcwd() 39 32 execfile('test_all.py') 40 33 else: 41 print 'anuga _parallel tests not run as pypar not installed'34 print 'anuga.parallel tests not run as pypar not installed' 42 35 43 36 … … 47 40 # FIXME SR 20130327: Just commenting out this comment to run the validation tests. 48 41 # We are currently undating the automated validation tests, so at present this point to 49 # something which most people do get as part of the download. We will update and50 # point them to the new anuga_validation_tests in future.42 # something which most people do not get as part of the download. We will update and 43 # point them to the new validation_tests in future. 51 44 """ 52 45 print
Note: See TracChangeset
for help on using the changeset viewer.