Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
41cd5271
Commit
41cd5271
authored
Sep 29, 2020
by
Stephan Seitz
Browse files
Make work on SymPy 1.7: sympy.printing.ccode -> sympy.printing.cxx
There's also sympy.printing.c but we are always compiling as C++.
parent
0d6780b8
Pipeline
#26891
passed with stage
in 11 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/backends/cbackend.py
View file @
41cd5271
...
...
@@ -20,7 +20,10 @@ from pystencils.integer_functions import (
try
:
from
sympy.printing.ccode
import
C99CodePrinter
as
CCodePrinter
except
ImportError
:
from
sympy.printing.ccode
import
CCodePrinter
# for sympy versions < 1.1
try
:
from
sympy.printing.ccode
import
CCodePrinter
# for sympy versions < 1.1
except
ImportError
:
from
sympy.printing.cxx
import
CXX11CodePrinter
as
CCodePrinter
# for sympy versions > 1.6
__all__
=
[
'generate_c'
,
'CustomCodeNode'
,
'PrintNode'
,
'get_headers'
,
'CustomSympyPrinter'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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