‘PETSC_INFINITY’ was not declared in this scope
Issue #243
invalid
Commit cc31f92cb842b88eeab83bc306afd43f58a1e52d leads to
~/software/fenics/dolfin/dev/source/dolfin/nls/PETScSNESSolver.cpp: In member function ‘void dolfin::PETScSNESSolver::set_bounds(dolfin::GenericVector&)’:
/home/nschloe/software/fenics/dolfin/dev/source/dolfin/nls/PETScSNESSolver.cpp:610:20: error: ‘PETSC_INFINITY’ was not declared in this scope
VecSet(ub, PETSC_INFINITY);
This is with the dreaded PETSc 3.2.
Comments (4)
-
-
- removed responsible
-
reporter - changed status to resolved
Caught it: It was actually an outdated PETSc-development version floating around in
/usr/local/
which triggered#if PETSC_VERSION_RELEASE
to be false. -
- changed status to invalid
- Log in to comment
You'll need to fix this yourself. The buildbots with PETSc 3.2 do not trigger this and I don't have PETSc 3.2