Changeset 6637


Ignore:
Timestamp:
Mar 27, 2009, 9:51:05 AM (16 years ago)
Author:
ole
Message:

Added verbosity flag to default boundary warning

Location:
anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/mesh_interface.py

    r6633 r6637  
    151151                #raise Exception, msg
    152152                # Fixme: Use proper Python warning
    153                 print 'WARNING: ', msg
     153                if verbose: print 'WARNING: ', msg
    154154               
    155155
  • anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py

    r6636 r6637  
    26112611                     polygon = [[1,1], [2,1], [2,2], [1,2]])
    26122612
    2613         assert num.allclose(R.exchange_area, 1)
     2613        assert num.allclose(R.exchange_area, 2)
    26142614       
    26152615        domain.forcing_terms.append(R)
     
    26612661                     polygon=rainfall_poly)                     
    26622662
    2663         assert num.allclose(R.exchange_area, 1)
     2663        assert num.allclose(R.exchange_area, 2)
    26642664       
    26652665        domain.forcing_terms.append(R)
     
    68516851       
    68526852if __name__ == "__main__":
    6853     suite = unittest.makeSuite(Test_Shallow_Water, 'test_time')
     6853    suite = unittest.makeSuite(Test_Shallow_Water, 'test')
    68546854    runner = unittest.TextTestRunner(verbosity=1)   
    68556855    runner.run(suite)
Note: See TracChangeset for help on using the changeset viewer.