Changeset 9381
- Timestamp:
- Dec 12, 2014, 5:30:01 PM (10 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/operators/set_quantity_operator.py
r9069 r9381 46 46 label = None, 47 47 logging = False, 48 verbose = False): 48 verbose = False, 49 test_stage=True, 50 test_elevation=True): 49 51 50 52 … … 59 61 center=center, 60 62 radius=radius, 61 line=line) 63 line=line, 64 test_stage=test_stage, 65 test_elevation=test_elevation) 62 66 63 67 Operator.__init__(self, domain, description, label, logging, verbose) -
trunk/anuga_core/source/anuga/operators/set_stage.py
r9378 r9381 47 47 verbose=verbose, 48 48 test_stage=False) 49 50 51 52 53 54 49 55 50 #------------------------------------------ -
trunk/anuga_core/source/anuga/operators/set_stage_operator.py
r9065 r9381 55 55 label = label, 56 56 logging = logging, 57 verbose = verbose) 57 verbose = verbose, 58 test_stage=False) 58 59 59 60 -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r9380 r9381 1893 1893 if self.flow_algorithm == 'tsunami': 1894 1894 1895 from swb2_domain_ext import protect as protect_swb21895 from swb2_domain_ext import protect 1896 1896 1897 1897 # shortcuts … … 1904 1904 areas = self.areas 1905 1905 1906 mass_error = protect _swb2(self.minimum_allowed_height, self.maximum_allowed_speed,1906 mass_error = protect(self.minimum_allowed_height, self.maximum_allowed_speed, 1907 1907 self.epsilon, wc, wv, zc,zv, xmomc, ymomc, areas) 1908 1908 … … 1912 1912 elif self.flow_algorithm.startswith('DE'): 1913 1913 1914 from swDE1_domain_ext import protect as protect_de1914 from swDE1_domain_ext import protect 1915 1915 1916 1916 # shortcuts … … 1925 1925 yc = self.centroid_coordinates[:,1] 1926 1926 1927 mass_error = protect _de(self.minimum_allowed_height, self.maximum_allowed_speed,1927 mass_error = protect(self.minimum_allowed_height, self.maximum_allowed_speed, 1928 1928 self.epsilon, wc, wv, zc,zv, xmomc, ymomc, areas, xc, yc) 1929 1929 -
trunk/anuga_core/source/anuga/shallow_water/swDE1_domain_ext.c
r9356 r9381 1950 1950 // Modified central flux function 1951 1951 1952 PyObject * compute_fluxes_ext_central(PyObject *self, PyObject *args) {1952 PyObject *swde1_compute_fluxes_ext_central(PyObject *self, PyObject *args) { 1953 1953 /*Compute all fluxes and the timestep suitable for all volumes 1954 1954 in domain. … … 1985 1985 1986 1986 1987 PyObject * flux_function_central(PyObject *self, PyObject *args) {1987 PyObject *swde1_flux_function_central(PyObject *self, PyObject *args) { 1988 1988 // 1989 1989 // Gateway to innermost flux function. … … 2040 2040 //======================================================================== 2041 2041 2042 PyObject * gravity(PyObject *self, PyObject *args) {2042 PyObject *swde1_gravity(PyObject *self, PyObject *args) { 2043 2043 // 2044 2044 // gravity(g, h, v, x, xmom, ymom) … … 2107 2107 } 2108 2108 2109 PyObject * compute_flux_update_frequency(PyObject *self, PyObject *args) {2109 PyObject *swde1_compute_flux_update_frequency(PyObject *self, PyObject *args) { 2110 2110 /* 2111 2111 … … 2134 2134 2135 2135 2136 PyObject * extrapolate_second_order_edge_sw(PyObject *self, PyObject *args) {2136 PyObject *swde1_extrapolate_second_order_edge_sw(PyObject *self, PyObject *args) { 2137 2137 /*Compute the edge values based on a linear reconstruction 2138 2138 on each triangle … … 2176 2176 //======================================================================== 2177 2177 2178 PyObject * protect(PyObject *self, PyObject *args) {2178 PyObject *swde1_protect(PyObject *self, PyObject *args) { 2179 2179 // 2180 2180 // protect(minimum_allowed_height, maximum_allowed_speed, wc, zc, xmomc, ymomc) … … 2235 2235 */ 2236 2236 //{"rotate", (PyCFunction)rotate, METH_VARARGS | METH_KEYWORDS, "Print out"}, 2237 {"compute_fluxes_ext_central", compute_fluxes_ext_central, METH_VARARGS, "Print out"},2238 {"gravity_c", gravity, METH_VARARGS, "Print out"},2239 {"flux_function_central", flux_function_central, METH_VARARGS, "Print out"},2240 {"extrapolate_second_order_edge_sw", extrapolate_second_order_edge_sw, METH_VARARGS, "Print out"},2241 {"compute_flux_update_frequency", compute_flux_update_frequency, METH_VARARGS, "Print out"},2242 {"protect", protect, METH_VARARGS | METH_KEYWORDS, "Print out"},2237 {"compute_fluxes_ext_central", swde1_compute_fluxes_ext_central, METH_VARARGS, "Print out"}, 2238 {"gravity_c", swde1_gravity, METH_VARARGS, "Print out"}, 2239 {"flux_function_central", swde1_flux_function_central, METH_VARARGS, "Print out"}, 2240 {"extrapolate_second_order_edge_sw", swde1_extrapolate_second_order_edge_sw, METH_VARARGS, "Print out"}, 2241 {"compute_flux_update_frequency", swde1_compute_flux_update_frequency, METH_VARARGS, "Print out"}, 2242 {"protect", swde1_protect, METH_VARARGS | METH_KEYWORDS, "Print out"}, 2243 2243 {NULL, NULL, 0, NULL} 2244 2244 };
Note: See TracChangeset
for help on using the changeset viewer.