Skip to content

Commit 7a1eb98

Browse files
committed
docs: Refresh generated code in GPU tutorial
1 parent 544012f commit 7a1eb98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/performance/01_gpu.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
" {\n",
310310
" for (int y = y_m; y <= y_M; y += 1)\n",
311311
" {\n",
312-
" uL0(time + 1, x + 2, y + 2) = dt*(c*(r1*uL0(time, x + 1, y + 2) + r1*uL0(time, x + 3, y + 2) + r2*uL0(time, x + 2, y + 1) + r2*uL0(time, x + 2, y + 3) - 2.0F*(r1*uL0(time, x + 2, y + 2) + r2*uL0(time, x + 2, y + 2))) + r0*uL0(time, x + 2, y + 2));\n",
312+
" uL0(time + 1, x + 2, y + 2) = dt*(c*(r1*uL0(time, x + 1, y + 2) + r1*uL0(time, x + 3, y + 2) + r2*uL0(time, x + 2, y + 1) + r2*uL0(time, x + 2, y + 3) + (-2.0F)*(r1*uL0(time, x + 2, y + 2) + r2*uL0(time, x + 2, y + 2))) + r0*uL0(time, x + 2, y + 2));\n",
313313
" }\n",
314314
" }\n",
315315
" STOP(section0,timers)\n",

0 commit comments

Comments
 (0)