[petsc-users] Determine if PETSc has been installed with HYPRE support

David Nies nies.david at googlemail.com
Tue Jul 17 10:02:44 CDT 2012


Great! Thank you, that was exactly what I was looking for! Could not
find it in the documentation, so I asked here.

Cheers,
-David

On Tue, Jul 17, 2012 at 4:50 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> If PETSc is installed with hypre - then the corresponding petscconf.h
> will have a flag PETSC_HAVE_HYPRE defined.
>
> [You could use this flag directly in your code to enable-disable
> corresponding functionality.]
>
> Satish
>
> On Tue, 17 Jul 2012, David Nies wrote:
>
>> Hello all!
>>
>> Is there a way to find out if a given PETSc installation has been
>> configured and built with '--with-hypre=1'? The background is that I
>> want to write an M4 test for our local build system to see if we
>> should support PETSc's HYPRE capabilities. Of couse, I could test if
>> there is a 'libHYPRE.a' present, but that would only prove that HYPRE
>> is installed, not that PETSc supports HYPRE...
>>
>> Thank you very much in advance!
>>
>> Yours
>> -David
>>
>


More information about the petsc-users mailing list