‘PETSC_INFINITY’ was not declared in this scope

Issue #243 invalid
Nico Schlömer created an issue

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)

  1. Prof Garth Wells

    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

  2. Nico Schlömer reporter

    Caught it: It was actually an outdated PETSc-development version floating around in /usr/local/ which triggered #if PETSC_VERSION_RELEASE to be false.

  3. Log in to comment