From 1b472a22ee15f2003588f8545b92b3683ccbecd0 Mon Sep 17 00:00:00 2001 From: markus <markus.holzer@fau.de> Date: Wed, 3 Jun 2020 11:12:21 +0200 Subject: [PATCH] [BUGFIX] Jacobi codegen test case --- tests/cuda/codegen/CudaJacobiKernel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cuda/codegen/CudaJacobiKernel.py b/tests/cuda/codegen/CudaJacobiKernel.py index 7ec84032a..0015677f3 100644 --- a/tests/cuda/codegen/CudaJacobiKernel.py +++ b/tests/cuda/codegen/CudaJacobiKernel.py @@ -8,10 +8,10 @@ with CodeGeneration() as ctx: # ----- Jacobi 2D - created by specifying weights in nested list -------------------------- src, dst = ps.fields("src, src_tmp: [2D]") - stencil = [[0, -1, 0], - [-1, 4, -1], - [0, -1, 0]] - assignments = ps.assignment_from_stencil(stencil, src, dst, normalization_factor=4 * h**2) + stencil = [[0, 1, 0], + [1, 0, 1], + [0, 1, 0]] + assignments = ps.assignment_from_stencil(stencil, src, dst, normalization_factor=0.25 * h**2) generate_sweep(ctx, 'CudaJacobiKernel2D', assignments, field_swaps=[(src, dst)], target="gpu") # ----- Jacobi 3D - created by using kernel_decorator with assignments in '@=' format ----- -- GitLab