Skip to content

Commit bc5629a

Browse files
committed
compiler: Add missing dereference funcs call in petsc callback
1 parent 0c1b1e5 commit bc5629a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

devito/petsc/iet/callbacks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ def _create_count_bc_body(self, body, pairs):
733733
body = body._rebuild(body.body + move_ptrs)
734734

735735
body = self._make_callable_body(
736-
body, standalones=struct_definition, stacks=deref_ptrs
736+
body, standalones=struct_definition,
737+
stacks=deref_ptrs + dereference_funcs(ctx, fields)
737738
)
738739
subs = {i._C_symbol: FieldFromPointer(i._C_symbol, ctx) for
739740
i in fields if not isinstance(i.function, AbstractFunction)}

0 commit comments

Comments
 (0)