Ignore:
Timestamp:
Dec 2, 2008, 9:46:45 AM (15 years ago)
Author:
steve
Message:

Found bug associated with changing max_speed_array to an integer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anuga_1d/comp_flux_vel_ext.c

    r5999 r6042  
    145145    double max_speed, normal;
    146146    int k, i, ki, n, m, nm=0;
    147    
     147
     148    //printf("Inside _comp\n");   
    148149   
    149150    for (k=0; k<number_of_elements; k++) {
    150151        flux[0] = 0.0;
    151152        flux[1] = 0.0;
    152        
     153        //printf("k = %d\n",k);
     154
    153155        for (i=0; i<2; i++) {
    154156            ki = k*2+i;
     
    526528                        &velocity)) {
    527529      PyErr_SetString(PyExc_RuntimeError, "comp_flux_vel_ext.c: compute_fluxes_vel_ext could not parse input");
     530      printf("comp_flux_vel_ext.c: compute_fluxes_vel_ext could not parse input");
    528531      return NULL;
    529532  }
     
    560563    number_of_elements = stage_vertex_values -> dimensions[0];
    561564 
     565
     566    //printf("comp_flux_vel 1 N = %d %15.5e %15.5e %15.5e %15.5e %15.5e \n",number_of_elements,cfl,timestep,epsilon,g,h0);
     567
     568
     569
    562570    // Call underlying flux computation routine and update
    563571    // the explicit update arrays
     
    585593                                       number_of_elements,
    586594                                       (double*) max_speed_array -> data);
    587    
     595
     596    //printf("comp_flux_vel 2 \n");   
    588597   
    589598    Py_DECREF(neighbours);
     
    605614    Py_DECREF(max_speed_array);
    606615   
    607    
     616    //printf("comp_flux_vel 3 \n");
     617
    608618    // Return updated flux timestep
    609619    return Py_BuildValue("d", timestep);
Note: See TracChangeset for help on using the changeset viewer.