Ignore:
Timestamp:
Jan 13, 2009, 10:51:33 AM (16 years ago)
Author:
ole
Message:

Developed protection against situation where requested culvert flows exceed
what is possible at the inlet. This works by computing the largest possible flow for each triangle and use that to reduce the overall flow if necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/culvert_flows/test_culvert_class.py

    r6128 r6142  
    319319                               end_point0=[9.0, 2.5],
    320320                               end_point1=[13.0, 2.5],
    321                                trigger_depth=0.6, #FIXME: This causes test to pass, but smaller values do not
     321                               trigger_depth=0.01,
    322322                               verbose=False)
    323323
     
    346346            msg = 'Total volume has changed: Is %.2f m^3 should have been %.2f m^3'\
    347347                % (new_volume, ref_volume)
     348            if not allclose(new_volume, ref_volume):
     349                print msg
    348350            assert allclose(new_volume, ref_volume), msg
    349351   
Note: See TracChangeset for help on using the changeset viewer.