Changes

Jump to: navigation, search

BetaT

26 bytes added, 18:16, 29 March 2017
Optimizing Problems
__global__ void Calculate (double* u, double* un,int nx, int c, double dx, double dt)
{
  for (int it = 1; it <= nx - 1; it++) { for (int k = 0; k <= nx - 1; k++) { un[k * nx + it - 1] = u[k * nx + it - 1]; }
{ un[k * nx + it - for (int m = 1] ; m <= u[k * nx + it - 1];m++)
} for (int m = 1; m <= nx - 1; m++) { u[0 * nx + it] = un[1 * nx + it - 1]; u[m * nx + it] = un[m * nx + it - 1] - c*dt / dx*(un[m * nx + it - 1] - un[(m - 1) * nx + it - 1]); } }
}'''
212
edits

Navigation menu