Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
244d02d0
Commit
244d02d0
authored
Nov 28, 2019
by
Michael Kuron
Browse files
create_staggered_kernel_2: fix reversed ghost layer logic
parent
dcc76a01
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/kernelcreation.py
View file @
244d02d0
...
...
@@ -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"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment