Skip to content

Commit

Permalink
const_char -> const char
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Aug 25, 2020
1 parent e64f5fe commit 8b76066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PETSc/DM.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,13 @@ cdef class DM(Object):

def adaptMetric(self, Vec metric, bdlabel=None, rglabel=None):
# boundary tags
cdef const_char *cval = NULL
cdef const char *cval = NULL
cdef PetscDMLabel cbdlbl = NULL
label = str2bytes(bdlabel, &cval)
if cval == NULL: cval = b"" # XXX Should be fixed upstream
CHKERR( DMGetLabel(self.dm, cval, &cbdlbl) )
# cell tags
cdef const_char *cval2 = NULL
cdef const char *cval2 = NULL
cdef PetscDMLabel crglbl = NULL
label = str2bytes(rglabel, &cval2)
if cval2 == NULL: cval2 = b"" # XXX Should be fixed upstream
Expand Down

0 comments on commit 8b76066

Please sign in to comment.