~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/la/PETScUserPreconditioner.cpp

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <boost/shared_ptr.hpp>
27
27
#include <petscversion.h>
28
 
#if PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>2
 
28
#if PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR > 2
29
29
#include <petsc-private/pcimpl.h>
30
30
#else
31
31
#include <private/pcimpl.h>
92
92
  pc->ops->setfromoptions      = 0;
93
93
  pc->ops->view                = 0;
94
94
  pc->ops->destroy             = 0;
95
 
  #if PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR > 1
96
95
  pc->ops->reset               = 0;
97
 
  #endif
98
96
  // Set PETSc name of preconditioner
99
97
  PetscObjectChangeTypeName((PetscObject)pc, "DOLFIN");
100
98