212
edits
Changes
BetaT
,→Optimizing with 2 Kernels
I have removed the 2 inner for loops but kept the outer loop.
The program takes 2 arrays. Let us say the X's represent the arrays below
Array 1 Array 2
xxxxx xxxxx
Upon initialization the 1st column of the first array gets set, this will be represented by o's
txxxx xxxxx
txxxx xxxxx
txxxx xxxxx
txxxx xxxxx
txxxx xxxxx
__global__ void Calculate (float* u, float* un,int nx, int c, float dx, float dt)