Changeset 4796


Ignore:
Timestamp:
Nov 5, 2007, 6:01:22 PM (16 years ago)
Author:
ole
Message:

Disabled faulty test in Advection and also commented the logging info out. Ended up excluding it altogether. If anyone think we need advection, see ticket:205, and revive it.

Location:
anuga_core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/advection/advection.py

    r4794 r4796  
    2020"""
    2121
    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
    3231
    3332
     
    331330        """
    332331
    333         logger.debug('Trying to weave advection.compute_fluxes')
     332        #logger.debug('Trying to weave advection.compute_fluxes')
    334333        weave.inline(code, ['stage_edge','stage_bdry','stage_update',
    335334                             'neighbours','neighbour_edges','normals',
  • anuga_core/source/anuga/advection/test_advection.py

    r4794 r4796  
    1111class Test_Advection(unittest.TestCase):
    1212    def setUp(self):
    13         print 'Running an advection test'
    1413        pass
    1514
     
    144143
    145144
    146     def test_advection_example(self):
     145    def FIXME_test_advection_example(self):
    147146        #Test that system can evolve
    148147
     
    163162        domain.check_integrity()
    164163
    165         print 'Advection domain evolving'
    166164        #Check that the boundary value gets propagated to all elements
    167165        for t in domain.evolve(yieldstep = 0.05, finaltime = 10):
    168             domain.write_time()
    169166            if allclose(domain.quantities['stage'].centroid_values, 3.1415):
    170167                break
  • anuga_core/source/anuga/test_all.py

    r4795 r4796  
    1919
    2020exclude_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
     26exclude_files.append('test_advection.py') #Weave doesn't work on Linux
     27
     28
     29# Directories that should not be searched for test files.   
    2430exclude_dirs = ['pypar_dist', #Special requirements
    2531                'props', 'wcprops', 'prop-base', 'text-base', '.svn', #Svn
  • anuga_core/test_all.py

    r3516 r4796  
    66os.chdir('anuga')
    77   
    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 
    168print 'Changing to', os.getcwd() #This is now different from buildroot   
    179
Note: See TracChangeset for help on using the changeset viewer.