Skip to content

Commit

Permalink
compiler: Edit _C_ctype property of PETScFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Dec 22, 2023
1 parent 544ea95 commit 4db870e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions devito/types/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def __dtype_setup__(cls, **kwargs):
def _C_ctype(self):
petsc_type = dtype_to_petsctype(self.dtype)
modifier = '*' * len(self.dimensions)
customtype = CustomDtype(petsc_type, modifier=modifier)
return customtype
return CustomDtype(petsc_type, modifier=modifier)

@property
def _C_name(self):
Expand Down

0 comments on commit 4db870e

Please sign in to comment.