Beispiel #1
0
/** lattice boltzmann update gpu called from integrate.c
*/
void lattice_boltzmann_update_gpu() {

  int factor = (int)round(lbpar_gpu.tau/time_step);

  fluidstep += 1;

  if (fluidstep>=factor) {
    fluidstep=0;

    lb_integrate_GPU();

    LB_TRACE (fprintf(stderr,"lb_integrate_GPU \n"));

  }
}
Beispiel #2
0
void lattice_boltzmann_update_gpu() {

  int factor = (int)round(lbpar_gpu.tau/time_step);

  fluidstep += 1;

  if (fluidstep>=factor) {

    fluidstep=0; 
    lb_integrate_GPU();
#ifdef SHANCHEN
    if(lbpar_gpu.remove_momentum) lb_remove_fluid_momentum_GPU();
#endif
    LB_TRACE (fprintf(stderr,"lb_integrate_GPU \n"));

  }
}