Changeset 9380


Ignore:
Timestamp:
Dec 12, 2014, 12:55:09 PM (10 years ago)
Author:
steve
Message:

Strange problem with importing protect

File:
1 edited

Legend:

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

    r9306 r9380  
    18931893        if self.flow_algorithm == 'tsunami':
    18941894
    1895             from swb2_domain_ext import protect
     1895            from swb2_domain_ext import protect as protect_swb2
    18961896
    18971897            # shortcuts
     
    19041904            areas = self.areas
    19051905
    1906             mass_error = protect(self.minimum_allowed_height, self.maximum_allowed_speed,
     1906            mass_error = protect_swb2(self.minimum_allowed_height, self.maximum_allowed_speed,
    19071907                self.epsilon, wc, wv, zc,zv, xmomc, ymomc, areas)
    19081908
     
    19121912        elif self.flow_algorithm.startswith('DE'):
    19131913
    1914             from swDE1_domain_ext import protect
     1914            from swDE1_domain_ext import protect as protect_de
    19151915
    19161916            # shortcuts
     
    19251925            yc = self.centroid_coordinates[:,1]
    19261926
    1927             mass_error = protect(self.minimum_allowed_height, self.maximum_allowed_speed,
     1927            mass_error = protect_de(self.minimum_allowed_height, self.maximum_allowed_speed,
    19281928                    self.epsilon, wc, wv, zc,zv, xmomc, ymomc, areas, xc, yc)
    19291929           
Note: See TracChangeset for help on using the changeset viewer.