Changeset 8401


Ignore:
Timestamp:
Apr 15, 2012, 6:57:21 PM (13 years ago)
Author:
steve
Message:

committing small changes to shallow_water_domain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8390 r8401  
    250250
    251251         # Limiters
    252         self.use_edge_limiter = use_edge_limiter
     252        self.set_use_edge_limiter(use_edge_limiter)
    253253        self.optimised_gradient_limiter = optimised_gradient_limiter
    254254        self.use_centroid_velocities = use_centroid_velocities
    255255
    256256        self.set_sloped_mannings_function(sloped_mannings_function)
     257
    257258        self.set_compute_fluxes_method(compute_fluxes_method)
    258259
     
    342343        elif flag is False:
    343344            self.extrapolate_velocity_second_order = False
    344            
     345
     346    def set_use_edge_limiter(self, flag=True):
     347        """ Extrapolation routine uses vertex values by default,
     348        for limiting, can change to edge limiting which
     349        seems to work better in some cases.
     350        """
     351
     352        if flag is True:
     353            self.use_edge_limiter = True
     354        elif flag is False:
     355            self.use_edge_limiter = False
     356
    345357
    346358    def set_use_kinematic_viscosity(self, flag=True):
Note: See TracChangeset for help on using the changeset viewer.