Stefano's fixes and improvements#2
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_XXXindicates PETSc has been configured with support forXXXpackage. Similarly,PETSC_USE_COMPLEXindicates 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