Dmitry, this patch used an API (DMSetFunction and DMSetJacobian) that was
deprecated at that time and has since been removed.

https://github.com/libMesh/libmesh/commit/d6a70b22dc6db38805851dc01533c73a26ca21e8

It would be pretty easy to update this code to use DMSNESSetFunction and
DMSNESSetJacobian (see  src/snes/utils/dmdasnes.c for an example of how
this should be done), but it's somewhat more work to maintain backward
compatibility.

Are you or someone else planning to do this?


I would also suggest something like this (PETSC_VERSION_GT is defined in
petsc-dev, needs petsc_macro.h support in general) to make this test work
after we release petsc-3.4.

diff --git i/src/solvers/petsc_linear_solver.C
w/src/solvers/petsc_linear_solver.C
index ae2c7a2..42e3d95 100644
--- i/src/solvers/petsc_linear_solver.C
+++ w/src/solvers/petsc_linear_solver.C
@@ -217,7 +217,7 @@ void PetscLinearSolver<T>::init ()
       // Have the Krylov subspace method use our good initial guess
       // rather than 0, unless the user requested a KSPType of
       // preonly, which complains if asked to use initial guesses.
-#if PETSC_VERSION_LESS_THAN(3,0,0) || !PETSC_VERSION_RELEASE
+#if PETSC_VERSION_LESS_THAN(3,0,0) || PETSC_VERSION_GT(3,3,0)
       // Pre-3.0 and petsc-dev (as of October 2012) use non-const versions
       KSPType ksp_type;
 #else
@@ -336,7 +336,7 @@ void PetscLinearSolver<T>::init ( PetscMatrix<T>*
matrix )
       // Have the Krylov subspace method use our good initial guess
       // rather than 0, unless the user requested a KSPType of
       // preonly, which complains if asked to use initial guesses.
-#if PETSC_VERSION_LESS_THAN(3,0,0)
+#if PETSC_VERSION_LESS_THAN(3,0,0) || PETSC_VERSION_GT(3,3,0)
       KSPType ksp_type;
 #else
       const KSPType ksp_type;
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to