Skip to content
Snippets Groups Projects
Commit 244d02d0 authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

create_staggered_kernel_2: fix reversed ghost layer logic

parent dcc76a01
1 merge request!93Reimplement create_staggered_kernel
Pipeline #20081 failed with stage
in 4 minutes
......@@ -345,9 +345,9 @@ def create_staggered_kernel_2(assignments, **kwargs):
direction = direction_string_to_offset(direction)
for d, s in enumerate(direction):
if s == 1:
ghost_layers[d][1] = 0
elif s == -1:
ghost_layers[d][0] = 0
elif s == -1:
ghost_layers[d][1] = 0
def condition(direction):
"""exclude those staggered points that correspond to fluxes between ghost cells"""
......
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