Changeset 7967
- Timestamp:
- Aug 23, 2010, 9:15:04 AM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py
r7939 r7967 171 171 self.quantities[name] = Quantity(self) 172 172 173 # Create an empty list for explicitforcing terms173 # Create an empty list for forcing terms 174 174 self.forcing_terms = [] 175 176 # Create an empty list for fractional step operators 177 self.fractional_step_operators = [] 175 178 176 179 # Setup the ghost cell communication … … 497 500 498 501 return self.time + self.starttime 502 503 504 ## 505 # @brief Get current timestep. 506 # @return The curent timestep (seconds). 507 def get_timestep(self): 508 """et current timestep (seconds).""" 509 510 return self.timestep 499 511 500 512 ## … … 1842 1854 1843 1855 ## 1844 # @brief apply_fractional_step. 1845 # Method should be overwritten in subclass, here it does nothing 1856 # @brief apply_fractional_steps. 1857 # Goes through all fractional step operators and updates centroid values of 1858 # conserved quantities over a timestep 1846 1859 def apply_fractional_steps(self): 1847 pass 1860 for operator in self.fractional_step_operators: 1861 operator() 1862 1863 ## 1864 # @brief set_fractional_step_operator. 1865 # Add a fractional step operator to list of operators 1866 def set_fractional_step_operator(self,operator): 1867 1868 self.fractional_step_operators.append(operator) 1848 1869 1849 1870 ## -
trunk/anuga_core/source/anuga/shallow_water/forcing.py
r7733 r7967 356 356 if self.polygon is not None: 357 357 # Inlet is polygon 358 inlet_region = 'polygon=%s' % (self.polygon)359 358 self.exchange_indices = inside_polygon(points, self.polygon) 360 359 -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r7939 r7967 532 532 compute_fluxes(self) 533 533 534 535 def apply_fractional_steps(self):536 """Loop throughand apply all extra fractional steps"""537 for operator in self.fractional_step_operators:538 operator.apply()539 534 540 535 def distribute_to_vertices_and_edges(self):
Note: See TracChangeset
for help on using the changeset viewer.