diff --git a/tinyasm/tinyasm.cpp b/tinyasm/tinyasm.cpp index f661500e62..c1e5c91b9e 100644 --- a/tinyasm/tinyasm.cpp +++ b/tinyasm/tinyasm.cpp @@ -419,6 +419,6 @@ PYBIND11_MODULE(_tinyasm, m) { auto blockjacobi = new BlockJacobi(dofsPerBlock, globalDofsPerBlock, localsize, newsf); pc->data = (void*)blockjacobi; PetscCall(PetscLogEventEnd(PC_tinyasm_SetASMLocalSubdomains, pc, 0, 0, 0)); - PetscFunctionReturn(PETSC_SUCCESS); + return 0; }); }