- Timestamp:
- Sep 7, 2009, 4:19:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r7452 r7492 4097 4097 4098 4098 # Data from earlier version of abstract_2d_finite_volumes 4099 assert num.allclose(domain. min_timestep, 0.0396825396825)4100 assert num.allclose(domain. max_timestep, 0.0396825396825)4099 assert num.allclose(domain.recorded_min_timestep, 0.0396825396825) 4100 assert num.allclose(domain.recorded_max_timestep, 0.0396825396825) 4101 4101 4102 4102 msg = ("domain.quantities['stage'].centroid_values[:12]=%s" … … 4163 4163 4164 4164 # Data from earlier version of abstract_2d_finite_volumes 4165 #assert allclose(domain. min_timestep, 0.0396825396825)4166 #assert allclose(domain. max_timestep, 0.0396825396825)4165 #assert allclose(domain.recorded_min_timestep, 0.0396825396825) 4166 #assert allclose(domain.recorded_max_timestep, 0.0396825396825) 4167 4167 #print domain.quantities['stage'].centroid_values 4168 4168 … … 4194 4194 4195 4195 # FIXME: These numbers were from version before 25/10 4196 #assert allclose(domain. min_timestep, 0.0140413643926)4197 #assert allclose(domain. max_timestep, 0.0140947355753)4196 #assert allclose(domain.recorded_min_timestep, 0.0140413643926) 4197 #assert allclose(domain.recorded_max_timestep, 0.0140947355753) 4198 4198 4199 4199 for i in range(3): … … 4241 4241 pass 4242 4242 4243 msg = 'min step was %f instead of %f' % (domain. min_timestep,4243 msg = 'min step was %f instead of %f' % (domain.recorded_min_timestep, 4244 4244 0.0210448446782) 4245 4245 4246 assert num.allclose(domain. min_timestep, 0.0210448446782), msg4247 assert num.allclose(domain. max_timestep, 0.0210448446782)4246 assert num.allclose(domain.recorded_min_timestep, 0.0210448446782), msg 4247 assert num.allclose(domain.recorded_max_timestep, 0.0210448446782) 4248 4248 4249 4249 #FIXME: These numbers were from version before 25/10 … … 4295 4295 pass 4296 4296 4297 assert num.allclose(domain. min_timestep, 0.0210448446782)4298 assert num.allclose(domain. max_timestep, 0.0210448446782)4297 assert num.allclose(domain.recorded_min_timestep, 0.0210448446782) 4298 assert num.allclose(domain.recorded_max_timestep, 0.0210448446782) 4299 4299 4300 4300 #FIXME: These numbers were from version before 21/3/6 - … … 4390 4390 for t in domain.evolve(yieldstep=0.01, finaltime=0.03): 4391 4391 pass 4392 assert num.allclose(domain. min_timestep, 0.0210448446782)4393 assert num.allclose(domain. max_timestep, 0.0210448446782)4392 assert num.allclose(domain.recorded_min_timestep, 0.0210448446782) 4393 assert num.allclose(domain.recorded_max_timestep, 0.0210448446782) 4394 4394 4395 4395 #print domain.quantities['stage'].centroid_values[:4] … … 4470 4470 # FIXME (Ole): Need some other assertion here! 4471 4471 #print domain.min_timestep, domain.max_timestep 4472 #assert allclose(domain. min_timestep, 0.050010003001)4473 #assert allclose(domain. max_timestep, 0.050010003001)4472 #assert allclose(domain.recorded_min_timestep, 0.050010003001) 4473 #assert allclose(domain.recorded_max_timestep, 0.050010003001) 4474 4474 4475 4475 os.remove(domain.get_name() + '.sww') … … 4693 4693 4694 4694 # Data from earlier version of abstract_2d_finite_volumes ft=0.1 4695 assert num.allclose(domain. min_timestep, 0.0376895634803)4696 assert num.allclose(domain. max_timestep, 0.0415635655309)4695 assert num.allclose(domain.recorded_min_timestep, 0.0376895634803) 4696 assert num.allclose(domain.recorded_max_timestep, 0.0415635655309) 4697 4697 4698 4698 assert num.allclose(domain.quantities['stage'].centroid_values,
Note: See TracChangeset
for help on using the changeset viewer.