Skip to content

Commit 8a09272

Browse files
committed
compiler: Working ed bueler example with petscsection
1 parent 07bbfc2 commit 8a09272

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

devito/petsc/iet/callbacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,11 @@ def _create_set_point_bc_body(self, body):
789789
)
790790

791791
malloc_bc_points_arr = petsc_call(
792-
'PetscMalloc1', [sobjs['numBC'], sobjs['bcPointsArr']]
792+
'PetscMalloc1', [sobjs['numBC'], Byref(sobjs['bcPointsArr']._C_symbol)]
793793
)
794794

795795
malloc_bc_points = petsc_call(
796-
'PetscMalloc1', [1, sobjs['bcPoints']]
796+
'PetscMalloc1', [1, Byref(sobjs['bcPoints']._C_symbol)]
797797
)
798798

799799
dummy_expr = DummyExpr(sobjs['bcPoints'].indexed[0], sobjs['bcPointsIS'])

0 commit comments

Comments
 (0)