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
pycodegen
pystencils_autodiff
Commits
32bb1d31
Commit
32bb1d31
authored
Oct 06, 2020
by
Stephan Seitz
Browse files
Add printing for BlockWithOutBraces
parent
552ece73
Pipeline
#27075
failed with stage
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pystencils_autodiff/framework_integration/printer.py
View file @
32bb1d31
...
...
@@ -33,6 +33,10 @@ class FrameworkIntegrationPrinter(pystencils.backends.cbackend.CBackend):
else
:
return
super
().
_print
(
node
)
def
_print_BlockWithoutBraces
(
self
,
node
):
block_contents
=
"
\n
"
.
join
([
self
.
_print
(
child
)
for
child
in
node
.
args
])
return
"
\n
%s
\n
"
%
(
''
.
join
(
block_contents
.
splitlines
(
True
)))
def
_print_WrapperFunction
(
self
,
node
):
super_result
=
super
().
_print_KernelFunction
(
node
)
if
self
.
_signatureOnly
:
...
...
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