Changeset 3817
- Timestamp:
- Oct 17, 2006, 4:45:52 PM (19 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py
r3804 r3817 7 7 Geoscience Australia 8 8 """ 9 10 from anuga.config import epsilon 9 11 10 12 from anuga.abstract_2d_finite_volumes.neighbour_mesh import Mesh … … 675 677 676 678 #FIXME: Maybe lump into a larger check prior to evolving 677 msg = 'Boundary tags must be bound to boundary objects before evolving system, ' 679 msg = 'Boundary tags must be bound to boundary objects before ' 680 msg += 'evolving system, ' 678 681 msg += 'e.g. using the method set_boundary.\n' 679 682 msg += 'This system has the boundary tags %s '\ … … 681 684 assert hasattr(self, 'boundary_objects'), msg 682 685 683 ##self.set_defaults()684 686 685 687 if yieldstep is None: … … 756 758 757 759 #Yield results 758 from anuga.config import epsilon759 760 if finaltime is not None and self.time >= finaltime-epsilon: 760 761 761 762 if self.time > finaltime: 762 763 764 763 #FIXME (Ole, 30 April 2006): Do we need this check? 764 print 'WARNING (domain.py): time overshot finaltime. Contact Ole.Nielsen@ga.gov.au' 765 self.time = finaltime 765 766 766 767 # Yield final time and stop … … 777 778 self.delete_old_checkpoints() 778 779 779 # Pass control on to outer loop for more specific actions780 # Pass control on to outer loop for more specific actions 780 781 yield(self.time) 781 782 -
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r3806 r3817 1030 1030 1031 1031 G3 = [-0.45000000000000001, -0.37713945714588398, -0.33029565026933816, -0.30598209033945367, -0.28847101155177313, -0.27211191064563195, -0.25701544058818926, -0.24298945948410997, -0.23010402733784807, -0.21820351802867713, -0.20709938367218383, -0.19719881806182216, -0.18568281604361933, -0.16828653906676322, -0.16977310768235579, -0.1832707289594605, -0.19483524345250974, -0.20233480051649216, -0.20630757214159207, -0.20763927857964531, -0.20724458160595791, -0.20599191745446047, -0.20438329669495012, -0.20256105512496606, -0.20071269486729407, -0.19934403619901719, -0.19866860191898347, -0.19849975056296071, -0.19860870923007437, -0.19885838217851401, -0.19916422433758982, -0.19946861981642039, -0.19972267778871666, -0.19993013816258154, -0.20011063428833351, -0.20024891930311628, -0.20031882555219671, -0.20031326268593497, -0.20024881068472311, -0.20015443214902759, -0.20005669097631221, -0.19997542564643309, -0.19992564006223304, -0.19990746148869892, -0.19990923999172872, -0.19991956416813192, -0.19993484556273733, -0.1999538628054662, -0.19997381636620407, -0.19999130900268777, -0.20000388227457688] 1032 1032 1033 #FIXME (DSG):This is a hack so the anuga install, not precompiled 1033 1034 # works on DSG's win2000, python 2.3 1034 1035 #The problem is the gauge_values[X] are 52 long, not 51. 1036 # 1037 # This was probably fixed by Stephen in changeset:3804 1035 1038 if len(gauge_values[0]) == 52: gauge_values[0].pop() 1036 1039 if len(gauge_values[1]) == 52: gauge_values[1].pop()
Note: See TracChangeset
for help on using the changeset viewer.