Skip to content
Snippets Groups Projects
Commit 375caebf authored by Dominik Thoennes's avatar Dominik Thoennes Committed by Samuel Kemmler
Browse files

update lbmpy to 1.3.5

parent 04f4adbd
No related merge requests found
This diff is collapsed.
Subproject commit f7b499615e14d70ab098a20deb0cdb3889998a1a
Subproject commit 7c33cdc2d39c7b99a122579f53bc94c8eb3332ff
......@@ -12,8 +12,8 @@ with CodeGeneration() as ctx:
@ps.kernel
def kernel_func():
src[0, 0] @= ((dy2 * (src[1, 0] + src[-1, 0]))
dst[0, 0] @= ((dy2 * (src[1, 0] + src[-1, 0]))
+ (dx2 * (src[0, 1] + src[0, -1]))
- (rhs[0, 0] * dx2 * dy2)) / (2.0 * (dx2 + dy2))
generate_sweep(ctx, 'Poisson', kernel_func)
generate_sweep(ctx, 'Poisson', kernel_func, field_swaps=[(src, dst), ])
......@@ -12,8 +12,8 @@ with CodeGeneration() as ctx:
@ps.kernel
def kernel_func():
src[0, 0] @= ((dy**2 * (src[1, 0] + src[-1, 0]))
dst[0, 0] @= ((dy**2 * (src[1, 0] + src[-1, 0]))
+ (dx**2 * (src[0, 1] + src[0, -1]))
- (rhs[0, 0] * dx**2 * dy**2)) / (2 * (dx**2 + dy**2))
generate_sweep(ctx, 'PoissonGPU', kernel_func, target=ps.Target.GPU)
generate_sweep(ctx, 'PoissonGPU', kernel_func, field_swaps=[(src, dst), ], target=ps.Target.GPU)
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