Changeset 8438
- Timestamp:
- May 23, 2012, 3:33:44 PM (13 years ago)
- Location:
- trunk/anuga_validation/automated_validation_tests/flow_tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_validation/automated_validation_tests/flow_tests/run_inflow_test_using_flowline.py
r8435 r8438 33 33 int(width/dy), len1=length, len2=width) 34 34 35 for mannings_n in [0.012, 0.035, 0.070, 0.150]: 35 mannings_numbers = [0.012, 0.035, 0.070, 0.150] 36 for mannings_n in mannings_numbers: 36 37 # Loop over a range of roughnesses 37 38 … … 139 140 if verbose: 140 141 print '45 degree flowline: ANUGA = %f, Ref = %f' % (q, ref_flow) 141 assert num.allclose(q, ref_flow, rtol= 1.0e-2), msg142 assert num.allclose(q, ref_flow, rtol=2.0e-2), msg 142 143 143 144 -
trunk/anuga_validation/automated_validation_tests/flow_tests/validate_flow.py
r8067 r8438 28 28 #print s 29 29 res = os.system('python %s > run_inflow_test_using_flowline.stdout' %s) 30 print "res", res 30 31 assert res == 0 31 32
Note: See TracChangeset
for help on using the changeset viewer.