Changeset 9381


Ignore:
Timestamp:
Dec 12, 2014, 5:30:01 PM (10 years ago)
Author:
steve
Message:

Made changes to procedure names in swDE1_domain_ext.c to avoid weird name collision when using Macs.

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  
    4646                 label = None,
    4747                 logging = False,
    48                  verbose = False):
     48                 verbose = False,
     49                 test_stage=True,
     50                 test_elevation=True):
    4951
    5052
     
    5961                              center=center,
    6062                              radius=radius,
    61                               line=line)
     63                              line=line,
     64                              test_stage=test_stage,
     65                              test_elevation=test_elevation)
    6266
    6367        Operator.__init__(self, domain, description, label, logging, verbose)
  • trunk/anuga_core/source/anuga/operators/set_stage.py

    r9378 r9381  
    4747                              verbose=verbose,
    4848                              test_stage=False)
    49 
    50 
    51 
    52 
    53 
    5449
    5550        #------------------------------------------
  • trunk/anuga_core/source/anuga/operators/set_stage_operator.py

    r9065 r9381  
    5555                                       label = label,
    5656                                       logging = logging,
    57                                        verbose = verbose)
     57                                       verbose = verbose,
     58                                       test_stage=False)
    5859
    5960
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r9380 r9381  
    18931893        if self.flow_algorithm == 'tsunami':
    18941894
    1895             from swb2_domain_ext import protect as protect_swb2
     1895            from swb2_domain_ext import protect
    18961896
    18971897            # shortcuts
     
    19041904            areas = self.areas
    19051905
    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,
    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 as protect_de
     1914            from swDE1_domain_ext import protect
    19151915
    19161916            # shortcuts
     
    19251925            yc = self.centroid_coordinates[:,1]
    19261926
    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,
    19281928                    self.epsilon, wc, wv, zc,zv, xmomc, ymomc, areas, xc, yc)
    19291929           
  • trunk/anuga_core/source/anuga/shallow_water/swDE1_domain_ext.c

    r9356 r9381  
    19501950// Modified central flux function
    19511951
    1952 PyObject *compute_fluxes_ext_central(PyObject *self, PyObject *args) {
     1952PyObject *swde1_compute_fluxes_ext_central(PyObject *self, PyObject *args) {
    19531953  /*Compute all fluxes and the timestep suitable for all volumes
    19541954    in domain.
     
    19851985
    19861986
    1987 PyObject *flux_function_central(PyObject *self, PyObject *args) {
     1987PyObject *swde1_flux_function_central(PyObject *self, PyObject *args) {
    19881988  //
    19891989  // Gateway to innermost flux function.
     
    20402040//========================================================================
    20412041
    2042 PyObject *gravity(PyObject *self, PyObject *args) {
     2042PyObject *swde1_gravity(PyObject *self, PyObject *args) {
    20432043  //
    20442044  //  gravity(g, h, v, x, xmom, ymom)
     
    21072107}
    21082108
    2109 PyObject *compute_flux_update_frequency(PyObject *self, PyObject *args) {
     2109PyObject *swde1_compute_flux_update_frequency(PyObject *self, PyObject *args) {
    21102110  /*
    21112111   
     
    21342134
    21352135
    2136 PyObject *extrapolate_second_order_edge_sw(PyObject *self, PyObject *args) {
     2136PyObject *swde1_extrapolate_second_order_edge_sw(PyObject *self, PyObject *args) {
    21372137  /*Compute the edge values based on a linear reconstruction
    21382138    on each triangle
     
    21762176//========================================================================
    21772177
    2178 PyObject *protect(PyObject *self, PyObject *args) {
     2178PyObject *swde1_protect(PyObject *self, PyObject *args) {
    21792179  //
    21802180  //    protect(minimum_allowed_height, maximum_allowed_speed, wc, zc, xmomc, ymomc)
     
    22352235   */
    22362236  //{"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"},
    22432243  {NULL, NULL, 0, NULL}
    22442244};
Note: See TracChangeset for help on using the changeset viewer.