Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Hönig
pystencils
Commits
b90b9a42
Commit
b90b9a42
authored
Nov 04, 2021
by
Jan Hönig
Browse files
Updated doctest
parent
4ca8df57
Pipeline
#35362
passed with stages
in 31 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
b90b9a42
...
...
@@ -20,7 +20,9 @@ pystencils/boundaries/createindexlistcython.*.so
pystencils_tests/tmp
pystencils_tests/kerncraft_inputs/.2d-5pt.c_kerncraft/
pystencils_tests/kerncraft_inputs/.3d-7pt.c_kerncraft/
report.xml
coverage_report/
# macOS
**/.DS_Store
\ No newline at end of file
**/.DS_Store
pystencils/kernel_decorator.py
View file @
b90b9a42
...
...
@@ -97,7 +97,7 @@ def kernel_config(config: CreateKernelConfig, **kwargs) -> Callable[..., Dict]:
... s.neighbors @= f[0,1] + f[1,0]
... g[0,0] @= s.neighbors + f[0,0] if f[0,0] > 0 else 0
>>> f, g = ps.fields('f, g: [2D]')
>>> assert my_kernel[0].rhs == f[0,1] + f[1,0]
>>> assert my_kernel[
'assignments'][
0].rhs == f[0,1] + f[1,0]
"""
def
decorator
(
func
:
Callable
[...,
None
])
->
Union
[
List
[
Assignment
],
Dict
]:
"""
...
...
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