212
edits
Changes
BetaT
,→Optimizing Problems
__global__ void Calculate (float* u, float* un,int nx, int c, float dx, float dt)
{
int j = blockIdx.x * blockDim.x + threadIdx.x;
int i = blockIdx.y * blockDim.y + threadIdx.y;
un[i * nx + it-1] = u[i * nx + it-1];
__syncthreads();