Skip to content
Snippets Groups Projects
Commit 0d2ceae5 authored by Samuel Kemmler's avatar Samuel Kemmler
Browse files

Merge branch 'thoennes/update-lbmpy-135' into 'master'

update lbmpy to 1.3.5

See merge request walberla/walberla!682
parents 04f4adbd 375caebf
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