@@ -40,11 +40,31 @@ class ResidualContext;
4040// need access to these most of the time as they are used internally by this object.
4141extern " C"
4242{
43+ PetscErrorCode libmesh_petsc_snes_monitor (SNES, PetscInt its, PetscReal fnorm, void *);
44+ PetscErrorCode libmesh_petsc_snes_residual (SNES, Vec x, Vec r, void * ctx);
45+ PetscErrorCode libmesh_petsc_snes_fd_residual (SNES, Vec x, Vec r, void * ctx);
46+ PetscErrorCode libmesh_petsc_snes_mffd_residual (SNES snes, Vec x, Vec r, void * ctx);
47+ PetscErrorCode libmesh_petsc_snes_mffd_interface (void * ctx, Vec x, Vec r);
48+ #if PETSC_RELEASE_LESS_THAN(3,5,0)
49+ PetscErrorCode libmesh_petsc_snes_jacobian (SNES, Vec x, Mat * jac, Mat * pc, MatStructure * msflag, void * ctx);
50+ #else
51+ PetscErrorCode libmesh_petsc_snes_jacobian (SNES, Vec x, Mat jac, Mat pc, void * ctx);
52+ #endif
53+
54+ PetscErrorCode libmesh_petsc_snes_postcheck (
55+ #if PETSC_VERSION_LESS_THAN(3,3,0)
56+ SNES, Vec x, Vec y, Vec w, void * context, PetscBool * changed_y, PetscBool * changed_w
57+ #else
58+ SNESLineSearch, Vec x, Vec y, Vec w, PetscBool * changed_y, PetscBool * changed_w, void * context
59+ #endif
60+ );
61+ PetscErrorCode libmesh_petsc_linesearch_shellfunc (SNESLineSearch linesearch, void * ctx);
62+
63+ #ifdef LIBMESH_ENABLE_DEPRECATED
4364 PetscErrorCode __libmesh_petsc_snes_monitor (SNES, PetscInt its, PetscReal fnorm, void *);
4465 PetscErrorCode __libmesh_petsc_snes_residual (SNES, Vec x, Vec r, void * ctx);
4566 PetscErrorCode __libmesh_petsc_snes_fd_residual (SNES, Vec x, Vec r, void * ctx);
4667 PetscErrorCode __libmesh_petsc_snes_mffd_interface (void * ctx, Vec x, Vec r);
47- PetscErrorCode __libmesh_petsc_snes_mffd_residual (SNES, Vec x, Vec r, void * ctx);
4868#if PETSC_RELEASE_LESS_THAN(3,5,0)
4969 PetscErrorCode __libmesh_petsc_snes_jacobian (SNES, Vec x, Mat * jac, Mat * pc, MatStructure * msflag, void * ctx);
5070#else
@@ -58,7 +78,7 @@ extern "C"
5878 SNESLineSearch, Vec x, Vec y, Vec w, PetscBool * changed_y, PetscBool * changed_w, void * context
5979#endif
6080 );
61- PetscErrorCode libmesh_petsc_linesearch_shellfunc (SNESLineSearch linesearch, void * ctx);
81+ # endif
6282}
6383
6484/* *
@@ -226,14 +246,13 @@ class PetscNonlinearSolver : public NonlinearSolver<T>
226246#endif
227247private:
228248 friend ResidualContext libmesh_petsc_snes_residual_helper (SNES snes, Vec x, void * ctx);
229- friend PetscErrorCode __libmesh_petsc_snes_residual (SNES snes, Vec x, Vec r, void * ctx);
230- friend PetscErrorCode __libmesh_petsc_snes_fd_residual (SNES snes, Vec x, Vec r, void * ctx);
231- friend PetscErrorCode __libmesh_petsc_snes_mffd_interface (void * ctx, Vec x, Vec r);
232- friend PetscErrorCode __libmesh_petsc_snes_mffd_residual (SNES snes, Vec x, Vec r, void * ctx);
249+ friend PetscErrorCode libmesh_petsc_snes_residual (SNES snes, Vec x, Vec r, void * ctx);
250+ friend PetscErrorCode libmesh_petsc_snes_fd_residual (SNES snes, Vec x, Vec r, void * ctx);
251+ friend PetscErrorCode libmesh_petsc_snes_mffd_residual (SNES snes, Vec x, Vec r, void * ctx);
233252#if PETSC_RELEASE_LESS_THAN(3,5,0)
234- friend PetscErrorCode __libmesh_petsc_snes_jacobian (SNES snes, Vec x, Mat * jac, Mat * pc, MatStructure * msflag, void * ctx);
253+ friend PetscErrorCode libmesh_petsc_snes_jacobian (SNES snes, Vec x, Mat * jac, Mat * pc, MatStructure * msflag, void * ctx);
235254#else
236- friend PetscErrorCode __libmesh_petsc_snes_jacobian (SNES snes, Vec x, Mat jac, Mat pc, void * ctx);
255+ friend PetscErrorCode libmesh_petsc_snes_jacobian (SNES snes, Vec x, Mat jac, Mat pc, void * ctx);
237256#endif
238257};
239258
0 commit comments