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

Satish Balay balay at mcs.anl.gov
Tue Jul 17 09:50:56 CDT 2012


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