Commit fd70162b authored by ph's avatar ph

prepare semin

parent 8f90f21a
...@@ -25,8 +25,8 @@ _n = 4 * _m ...@@ -25,8 +25,8 @@ _n = 4 * _m
# grid size # grid size
_nx = 1024 _nx = 128
_ny = 1024 _ny = 128
Lx = 1. Lx = 1.
Ly = 1. Ly = 1.
......
...@@ -127,7 +127,7 @@ __kernel void time_step(__global float *fn, __global float *fnp1){ ...@@ -127,7 +127,7 @@ __kernel void time_step(__global float *fn, __global float *fnp1){
// second order relaxation // second order relaxation
for(int ik = 0; ik < _N; ik++) for(int ik = 0; ik < _N; ik++)
fnext[ik] = 2 * fnext[ik] - fnow[ik]; //fnext[ik] = 2 * fnext[ik] - fnow[ik];
// save // save
for(int ik = 0; ik < _N; ik++){ for(int ik = 0; ik < _N; ik++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment