Changeset 9378
- Timestamp:
- Dec 9, 2014, 5:15:46 PM (10 years ago)
- Location:
- trunk/anuga_core/source/anuga/operators
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/operators/set_elevation.py
r9125 r9378 34 34 polygon=None, 35 35 center=None, 36 radius=None): 37 36 radius=None, 37 line=None, 38 verbose = False): 38 39 39 40 Set_quantity.__init__(self, domain, 'elevation', 40 value =elevation,41 value=elevation, 41 42 indices=indices, 42 43 polygon=polygon, 43 44 center=center, 44 45 radius=radius, 46 line=line, 47 verbose=verbose, 45 48 test_elevation=False) 46 49 -
trunk/anuga_core/source/anuga/operators/set_quantity.py
r9092 r9378 35 35 line=None, 36 36 verbose = False, 37 test_elevation=True): 37 test_elevation=True, 38 test_stage=True): 38 39 39 40 … … 58 59 if test_elevation: 59 60 msg ='Use Set_elevation to maintain continuity' 60 assert quantity is not 'elevation' 61 assert quantity is not 'elevation', msg 62 63 if test_stage: 64 msg ='Use Set_stage to maintain non-negative water depth' 65 assert quantity is not 'stage', msg 61 66 62 67 #------------------------------------------- … … 94 99 95 100 #-------------------------------------- 96 # Update all three vertices for each cell101 # Update centroid values 97 102 #-------------------------------------- 98 103 try: … … 106 111 107 112 #-------------------------------------- 108 # Update all three vertices for each cell113 # Update centroid values 109 114 #-------------------------------------- 110 115 ids = self.indices
Note: See TracChangeset
for help on using the changeset viewer.