-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion on GC of PETSc objects on PETSc-Users #41
Comments
I have implemented a draft of another approach to handle petsc gc. See branch: https://github.com/gridap/GridapPETSc.jl/tree/petsc_gc My principal goal is to fix the issue of petsc gc using the standard petsc destroy functions (e.g., VecDestroy, MatDestroy, etc). I am not 100% confortable using more sophisticated petsc functions as we explored here #42 In particular, with this error
So, I think it is perhaps a good idea to find a solution with the standard petsc destroy functions alone. The main idea is to maintain a package global vector The draft is incomplete:
|
@fverdugo ... this error is easily by-passeable. Barry Smith told us the solution and that they would accept a PR in PETSc along the lines that he proposed. Anyway, I understand your point, it is much better if we are able to solve the problem using more standard functionality in PETSc. I still have to understand what you are proposing, whether it works, etc. The current solution works. (up to that nasty error that is not acceptable). |
The text was updated successfully, but these errors were encountered: