Changeset 2380 for inundation/pyvolution/domain.py
- Timestamp:
- Feb 13, 2006, 12:35:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/domain.py
r2319 r2380 60 60 #FIXME: Maybe have separate orders for h-limiter and w-limiter? 61 61 #Or maybe get rid of order altogether and use beta_w and beta_h 62 self.default_order = 1 63 self.order = self.default_order 62 self.set_default_order(1) 63 #self.default_order = 1 64 #self.order = self.default_order 65 64 66 self.smallsteps = 0 65 67 self.max_smallsteps = max_smallsteps … … 92 94 N=self.number_of_elements 93 95 self.already_computed_flux = zeros((N, 3), Int) 96 97 98 def set_default_order(self, n): 99 """Set default (spatial) order to either 1 or 2 100 """ 101 102 msg = 'Default order must be either 1 or 2. I got %s' %n 103 assert n in [1,2], msg 104 105 self.default_order = n 106 self.order = self.default_order 107 94 108 95 109 #Public interface to Domain … … 197 211 198 212 return self.quantities[name].get_values( location, indices = indices) 213 214 def get_quantity_object(self, name): 215 """Get object for named quantity 216 217 name: Name of quantity 218 """ 219 220 return self.quantities[name] 199 221 200 222
Note: See TracChangeset
for help on using the changeset viewer.