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
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment