-
Notifications
You must be signed in to change notification settings - Fork 5
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
Stefano's fixes and improvements #2
base: master
Are you sure you want to change the base?
Conversation
We can check it by using PETSC_HAVE_HYPRE
Having few examples of usage from C++ would be nice, since the interface library is callable from C++. I can only find python examples in the project directory. |
Other initial comments:
|
Pushed some more comments directly in the code 6e96003 |
Thank you for all your suggestions! I merged your commit for the HYPRE support, this is really much cleaner!
I am not sure, we are discussing this. Do you have a suggestion? Do PETSc users tend to use older PETSc versions, or do they generally keep up with the releases?
I did it myself, thank you for the hint about PETSC_USE_COMPLEX!
I changed this the way you suggested.
I added a simple C++ example. As for the comments in the code:
Thanks again for your feedback, the inteface already looks much neater! Best, |
I will use this PR to provide my feedback to the project
First thing, you do not need to test for HYPRE support at configure time, PETSc provides a macro for it (
PETSC_HAVE_HYPRE
). In general,PETSC_HAVE_XXX
indicates PETSc has been configured with support forXXX
package. Similarly,PETSC_USE_COMPLEX
indicates PETSc has been configure withPetscScalar == complex_number
.Do you want me to fix also the complex thing? Note that
PETSC_HAVE_COMPLEX
, just indicates that std::Complex is available to PETSc, see here https://gitlab.com/petsc/petsc/-/blob/master/include/petscsystypes.h#L208