does not compile against PETSc3.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libadjoint |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Changes in PETSc interface make libadjoint not compile against PETSc3.2. Possibly other versions too, but that is the one I have installed. The pasted diff fixes the compilation:
=== modified file 'src/adj_
--- src/adj_
+++ src/adj_
@@ -165,7 +165,7 @@
Vec *vec=(Vec*) malloc(
PetscViewer viewer;
PetscViewerB
- VecLoad(viewer, PETSC_NULL, vec);
+ VecLoad(vec, viewer);
PetscViewerD
*x = petsc_vec_
#else
@@ -220,7 +220,8 @@
#ifdef HAVE_PETSC
KSP ksp; /* linear solver context */
PC pc; /* preconditioner context */
- PetscTruth assembled;
+ PetscBool assembled;
+ //bool assembled;
MatAssembl
if (!assembled)
This should ofcourse be put in appropriate #ifdefs :)
Hi Johan,
Thanks for that bug and the patch. Can you try the confirm the latest trunk fixes the issue? (I don't have PETsc 3.2 handy here)