[petsc-dev] petsc-dev build error in petscsnes.h90

Alexander Grayver agrayver at gfz-potsdam.de
Mon Apr 23 15:14:01 CDT 2012


I also have this problem and solve it by editing this file manually.

Regards,
Alexander

----- Reply message -----
From: "Stephan Kramer" <s.kramer at imperial.ac.uk>
To: "For users of the development version of PETSc" <petsc-dev at mcs.anl.gov>
Subject: [petsc-dev] petsc-dev build error in petscsnes.h90
Date: Mon, Apr 23, 2012 22:09


Hi all,

When building petsc-dev, configured --with-fortran-interfaces=1, I had to add the following lines to include/finclude/petscsnesdef.h:

diff -r fc934c1d84bc include/finclude/petscsnesdef.h
--- a/include/finclude/petscsnesdef.h	Mon Apr 23 11:39:32 2012 -0500
+++ b/include/finclude/petscsnesdef.h	Mon Apr 23 21:02:14 2012 +0100
@@ -12,6 +12,13 @@
 #define SNESType character*(80)
 #define SNESMSType character*(80)
 #define SNESConvergedReason PetscEnum
+#define SNESQNRestartType PetscEnum
+#define SNESQNCompositionType PetscEnum
+#define SNESQNScaleType PetscEnum
+#define SNESNCGType PetscEnum
+#define SNESNGMRESRestartType PetscEnum
+#define SNESNGMRESSelectType PetscEnum
+#define SNESNormType PetscEnum
 #define SNESLineSearchType  PetscEnum
 #define MatMFFD PetscFortranAddr
 #define MatMFFDType PetscFortranAddr

to avoid compile errors in include/finclude/ftn-auto/petscsnes.h90 (included from include/finclude/petscsnes.h90). Is this a bug, or did something else go wrong?

Cheers
Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120423/5054a3fb/attachment.html>


More information about the petsc-dev mailing list