Skip to content

Commit

Permalink
Update firedrake/cython/dmcommon.pyx
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Ward <[email protected]>
  • Loading branch information
dham and connorjward committed Feb 12, 2025
1 parent c4d64e6 commit 2cf30db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions firedrake/cython/dmcommon.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2147,10 +2147,6 @@ def mark_entity_classes_using_cell_dm(PETSc.DM swarm):
for ilabel, op2class in enumerate([b"pyop2_core", b"pyop2_owned", b"pyop2_ghost"]):
CHKERR(DMCreateLabel(swarm.dm, op2class))
CHKERR(DMGetLabel(swarm.dm, op2class, &swarm_labels[ilabel]))
# pycellid = <bytes> swarm.getCellDMActive().getCellID()
# cdef char*pycellid = <bytes> swarm.getCellDMActive().getCellID()
# swarmParentCells = swarm.getField(pycellid)

CHKERR(DMSwarmGetCellDMActive(swarm.dm, &celldm))
CHKERR(DMSwarmCellDMGetCellID(celldm, &cellid))
CHKERR(DMSwarmGetField(swarm.dm, cellid, &blocksize, &ctype, <void**> &swarmParentCells))
Expand Down

0 comments on commit 2cf30db

Please sign in to comment.