Ignore:
Timestamp:
Aug 23, 2010, 9:15:04 AM (14 years ago)
Author:
steve
Message:

Commits from session with Nariman

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  
    171171            self.quantities[name] = Quantity(self)
    172172
    173         # Create an empty list for explicit forcing terms
     173        # Create an empty list for forcing terms
    174174        self.forcing_terms = []
     175
     176        # Create an empty list for fractional step operators
     177        self.fractional_step_operators = []
    175178
    176179        # Setup the ghost cell communication
     
    497500
    498501        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
    499511
    500512    ##
     
    18421854
    18431855    ##
    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
    18461859    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)
    18481869
    18491870    ##
  • trunk/anuga_core/source/anuga/shallow_water/forcing.py

    r7733 r7967  
    356356        if self.polygon is not None:
    357357            # Inlet is polygon
    358             inlet_region = 'polygon=%s' % (self.polygon)
    359358            self.exchange_indices = inside_polygon(points, self.polygon)
    360359
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r7939 r7967  
    532532        compute_fluxes(self)
    533533
    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()
    539534
    540535    def distribute_to_vertices_and_edges(self):
Note: See TracChangeset for help on using the changeset viewer.