Skip to content
Snippets Groups Projects
Commit 83046199 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Use suffix in destructuring for WalberlaFieldUse suffix in destructuring for WalberlaFields

parent 381bd68b
No related branches found
No related tags found
No related merge requests found
Pipeline #22325 failed
...@@ -95,7 +95,8 @@ class FrameworkIntegrationPrinter(pystencils.backends.cbackend.CBackend): ...@@ -95,7 +95,8 @@ class FrameworkIntegrationPrinter(pystencils.backends.cbackend.CBackend):
destructuring_bindings = ["%s %s = %s.%s;" % destructuring_bindings = ["%s %s = %s.%s;" %
(u.dtype, (u.dtype,
u.name, u.name,
u.field_name if hasattr(u, 'field_name') else u.field_names[0], (u.field_name if hasattr(u, 'field_name') else u.field_names[0])
+ (node.field_suffix if hasattr(node, 'field_suffix') else ''),
node.CLASS_TO_MEMBER_DICT[u.__class__].format( node.CLASS_TO_MEMBER_DICT[u.__class__].format(
dtype=(u.dtype.base_type if type(u) == FieldPointerSymbol dtype=(u.dtype.base_type if type(u) == FieldPointerSymbol
else fields_dtype[u.field_name else fields_dtype[u.field_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment