Changeset 8948


Ignore:
Timestamp:
Aug 4, 2013, 6:40:15 PM (11 years ago)
Author:
steve
Message:

Changed some function names in the C code so they are different. Seems the mac has a tendency to pull in the wrong objects!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/swb2_domain_ext.c

    r8880 r8948  
    12831283// Modified central flux function
    12841284
    1285 PyObject *compute_fluxes_ext_central(PyObject *self, PyObject *args) {
     1285PyObject *swb2_compute_fluxes_ext_central(PyObject *self, PyObject *args) {
    12861286  /*Compute all fluxes and the timestep suitable for all volumes
    12871287    in domain.
     
    14531453
    14541454
    1455 PyObject *flux_function_central(PyObject *self, PyObject *args) {
     1455PyObject *swb2_flux_function_central(PyObject *self, PyObject *args) {
    14561456  //
    14571457  // Gateway to innermost flux function.
     
    15001500//========================================================================
    15011501
    1502 PyObject *gravity(PyObject *self, PyObject *args) {
     1502PyObject *swb2_gravity(PyObject *self, PyObject *args) {
    15031503  //
    15041504  //  gravity(g, h, v, x, xmom, ymom)
     
    15681568
    15691569
    1570 PyObject *extrapolate_second_order_edge_sw(PyObject *self, PyObject *args) {
     1570PyObject *swb2_extrapolate_second_order_edge_sw(PyObject *self, PyObject *args) {
    15711571  /*Compute the edge values based on a linear reconstruction
    15721572    on each triangle
     
    17191719//========================================================================
    17201720
    1721 PyObject *protect(PyObject *self, PyObject *args) {
     1721PyObject *swb2_protect(PyObject *self, PyObject *args) {
    17221722  //
    17231723  //    protect(minimum_allowed_height, maximum_allowed_speed, wc, zc, xmomc, ymomc)
     
    17751775   */
    17761776  //{"rotate", (PyCFunction)rotate, METH_VARARGS | METH_KEYWORDS, "Print out"},
    1777   {"compute_fluxes_ext_central", compute_fluxes_ext_central, METH_VARARGS, "Print out"},
    1778   {"gravity_c",        gravity,            METH_VARARGS, "Print out"},
    1779   {"flux_function_central", flux_function_central, METH_VARARGS, "Print out"}, 
    1780   {"extrapolate_second_order_edge_sw", extrapolate_second_order_edge_sw, METH_VARARGS, "Print out"},
    1781   {"protect",          protect, METH_VARARGS | METH_KEYWORDS, "Print out"},
     1777  {"compute_fluxes_ext_central", swb2_compute_fluxes_ext_central, METH_VARARGS, "Print out"},
     1778  {"gravity_c",        swb2_gravity,            METH_VARARGS, "Print out"},
     1779  {"flux_function_central", swb2_flux_function_central, METH_VARARGS, "Print out"},
     1780  {"extrapolate_second_order_edge_sw", swb2_extrapolate_second_order_edge_sw, METH_VARARGS, "Print out"},
     1781  {"protect",          swb2_protect, METH_VARARGS | METH_KEYWORDS, "Print out"},
    17821782  {NULL, NULL, 0, NULL}
    17831783};
Note: See TracChangeset for help on using the changeset viewer.