Changeset 4796
- Timestamp:
- Nov 5, 2007, 6:01:22 PM (17 years ago)
- Location:
- anuga_core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/advection/advection.py
r4794 r4796 20 20 """ 21 21 22 print '************Advection module called' 23 24 import logging, logging.config 25 logger = logging.getLogger('advection') 26 logger.setLevel(logging.WARNING) 27 28 try: 29 logging.config.fileConfig('log.ini') 30 except: 31 pass 22 23 #import logging, logging.config 24 #logger = logging.getLogger('advection') 25 #logger.setLevel(logging.WARNING) 26 # 27 #try: 28 # logging.config.fileConfig('log.ini') 29 #except: 30 # pass 32 31 33 32 … … 331 330 """ 332 331 333 logger.debug('Trying to weave advection.compute_fluxes')332 #logger.debug('Trying to weave advection.compute_fluxes') 334 333 weave.inline(code, ['stage_edge','stage_bdry','stage_update', 335 334 'neighbours','neighbour_edges','normals', -
anuga_core/source/anuga/advection/test_advection.py
r4794 r4796 11 11 class Test_Advection(unittest.TestCase): 12 12 def setUp(self): 13 print 'Running an advection test'14 13 pass 15 14 … … 144 143 145 144 146 def test_advection_example(self):145 def FIXME_test_advection_example(self): 147 146 #Test that system can evolve 148 147 … … 163 162 domain.check_integrity() 164 163 165 print 'Advection domain evolving'166 164 #Check that the boundary value gets propagated to all elements 167 165 for t in domain.evolve(yieldstep = 0.05, finaltime = 10): 168 domain.write_time()169 166 if allclose(domain.quantities['stage'].centroid_values, 3.1415): 170 167 break -
anuga_core/source/anuga/test_all.py
r4795 r4796 19 19 20 20 exclude_files = [] 21 if sys.platform != 'win32': #Windows 22 exclude_files.append('test_advection.py') #Weave doesn't work on Linux 23 21 22 #if sys.platform != 'win32': 23 # exclude_files.append('test_advection.py') #Weave doesn't work on Linux 24 25 # Exclude test_advection on all platforms for the time being. See ticket:205 26 exclude_files.append('test_advection.py') #Weave doesn't work on Linux 27 28 29 # Directories that should not be searched for test files. 24 30 exclude_dirs = ['pypar_dist', #Special requirements 25 31 'props', 'wcprops', 'prop-base', 'text-base', '.svn', #Svn -
anuga_core/test_all.py
r3516 r4796 6 6 os.chdir('anuga') 7 7 8 #Complete horrible hack to decide which branch to take (Ole)9 #try:10 # os.stat('inundation-numpy-branch')11 #except:12 # os.chdir('inundation')13 #else:14 # os.chdir('inundation-numpy-branch')15 16 8 print 'Changing to', os.getcwd() #This is now different from buildroot 17 9
Note: See TracChangeset
for help on using the changeset viewer.