Changeset 4794


Ignore:
Timestamp:
Nov 5, 2007, 5:28:09 PM (16 years ago)
Author:
ole
Message:

Added some print out statements in advection.py to see if it is being called at all by the tests.

Location:
anuga_core/source/anuga
Files:
3 edited

Legend:

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

    r4793 r4794  
    1 import sys
    2 from os import sep
    3 
    41"""Class Domain -
    522D triangular domains for finite-volume computations of
     
    2320"""
    2421
     22print '************Advection module called'
    2523
    2624import logging, logging.config
     
    3533
    3634from anuga.abstract_2d_finite_volumes.domain import *
    37 Generic_domain = Domain #Rename
     35Generic_domain = Domain # Rename
    3836
    3937class Domain(Generic_domain):
  • anuga_core/source/anuga/advection/test_advection.py

    r3662 r4794  
    11import sys
    22from os import sep
    3 sys.path.append('..'+sep+'pyvolution')
    43
    54import unittest
     
    87from anuga.config import g, epsilon
    98from Numeric import allclose, array, zeros, ones, Float
    10 from anuga.advection.advection import *
     9from anuga.advection.advection import Domain, Transmissive_boundary, Dirichlet_boundary
    1110
    1211class Test_Advection(unittest.TestCase):
    1312    def setUp(self):
     13        print 'Running an advection test'
    1414        pass
    1515
     
    147147        #Test that system can evolve
    148148
    149         from mesh_factory import rectangular
     149        from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular
    150150
    151151        points, vertices, boundary = rectangular(6, 6)
     
    163163        domain.check_integrity()
    164164
     165        print 'Advection domain evolving'
    165166        #Check that the boundary value gets propagated to all elements
    166167        for t in domain.evolve(yieldstep = 0.05, finaltime = 10):
     168            domain.write_time()
    167169            if allclose(domain.quantities['stage'].centroid_values, 3.1415):
    168170                break
     
    173175#-------------------------------------------------------------
    174176if __name__ == "__main__":
    175     suite = unittest.makeSuite(Test_Advection,'test')
     177    suite = unittest.makeSuite(Test_Advection, 'test')
    176178    runner = unittest.TextTestRunner()
    177179    runner.run(suite)
  • anuga_core/source/anuga/test_all.py

    r4763 r4794  
    2121if sys.platform != 'win32':  #Windows
    2222    exclude_files.append('test_advection.py') #Weave doesn't work on Linux
    23 
     23   
    2424exclude_dirs = ['pypar_dist', #Special requirements
    2525                'props', 'wcprops', 'prop-base', 'text-base', '.svn', #Svn
Note: See TracChangeset for help on using the changeset viewer.