Ignore:
Timestamp:
Mar 29, 2012, 5:28:53 PM (13 years ago)
Author:
steve
Message:

changing compute_fluxes to use C domain structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/sw_domain.h

    r8371 r8373  
    1515    double  H0;
    1616    double  g;
     17    long    optimise_dry_cells;
     18    double  flux_timestep;
    1719
    1820    long*   neighbours;
     
    2224    double* radii;
    2325    double* areas;
     26
    2427    long*   tri_full_flag;
    2528    long*   already_computed_flux;
     29    double* max_speed;
    2630
    2731    double* vertex_coordinates;
     
    6569            *tri_full_flag,
    6670            *already_computed_flux,
    67             *vertex_coordinates;
     71            *vertex_coordinates,
     72            *max_speed;
    6873
    6974    PyObject *quantities;
     
    7378    D->H0 = get_python_double(domain, "H0");
    7479    D->g = get_python_double(domain, "g");
     80    D->optimise_dry_cells = get_python_integer(domain, "optimise_dry_cells");
     81
     82    D->flux_timestep = get_python_double(domain, "flux_timestep");
    7583
    7684    neighbours = get_consecutive_array(domain, "neighbours");
     
    100108    vertex_coordinates = get_consecutive_array(domain, "vertex_coordinates");
    101109    D->vertex_coordinates = (double *) vertex_coordinates->data;
     110   
     111    max_speed = get_consecutive_array(domain, "max_speed");
     112    D->max_speed = (double *) max_speed->data;
     113
    102114
    103115    quantities = get_python_object(domain, "quantities");
Note: See TracChangeset for help on using the changeset viewer.