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
Jonas Plewinski
pystencils
Commits
32538b37
Commit
32538b37
authored
Sep 25, 2019
by
Martin Bauer
Browse files
Merge branch 'extra-asserts-sympy-issue' into 'master'
Extra asserts sympy issue See merge request
pycodegen/pystencils!58
parents
0a8c16b0
9a3e57aa
Changes
1
Show whitespace changes
Inline
Side-by-side
pystencils/astnodes.py
View file @
32538b37
...
...
@@ -569,7 +569,9 @@ class SympyAssignment(Node):
class
ResolvedFieldAccess
(
sp
.
Indexed
):
def
__new__
(
cls
,
base
,
linearized_index
,
field
,
offsets
,
idx_coordinate_values
):
if
not
isinstance
(
base
,
sp
.
IndexedBase
):
assert
isinstance
(
base
,
TypedSymbol
)
base
=
sp
.
IndexedBase
(
base
,
shape
=
(
1
,))
assert
isinstance
(
base
.
label
,
TypedSymbol
)
obj
=
super
(
ResolvedFieldAccess
,
cls
).
__new__
(
cls
,
base
,
linearized_index
)
obj
.
field
=
field
obj
.
offsets
=
offsets
...
...
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