17#ifndef dealii_sundials_kinsol_h
18#define dealii_sundials_kinsol_h
22#ifdef DEAL_II_WITH_SUNDIALS
34# include <boost/signals2.hpp>
36# include <kinsol/kinsol.h>
37# include <nvector/nvector_serial.h>
38# include <sundials/sundials_math.h>
39# include <sundials/sundials_types.h>
48# define AssertKINSOL(code) Assert(code >= 0, ExcKINSOLError(code))
183 template <
typename VectorType = Vector<
double>>
410 solve(VectorType &initial_guess_and_solution);
441 std::function<void(
const VectorType &src, VectorType &dst)>
residual;
456 std::function<void(
const VectorType &src, VectorType &dst)>
504 std::function<void(
const VectorType ¤t_u,
505 const VectorType ¤t_f)>
574 std::function<void(
const VectorType &ycur,
575 const VectorType &fcur,
576 const VectorType &rhs,
620 void(
const VectorType &rhs, VectorType &dst,
const double tolerance)>
698 <<
"One of the SUNDIALS KINSOL internal functions "
699 <<
"returned a negative error code: " << arg1
700 <<
". Please consult SUNDIALS manual.");
709 <<
"Please provide an implementation for the function \""
735# if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
unsigned int maximum_setup_calls
double maximum_newton_step
SolutionStrategy strategy
unsigned int maximum_beta_failures
void add_parameters(ParameterHandler &prm)
unsigned int maximum_non_linear_iterations
unsigned int anderson_subspace_size
double function_tolerance
std::function< VectorType &()> get_solution_scaling
std::function< void(const VectorType ¤t_u, const VectorType ¤t_f)> setup_jacobian
void set_functions_to_trigger_an_assert()
MPI_Comm mpi_communicator
unsigned int solve(VectorType &initial_guess_and_solution)
std::function< void(const VectorType &src, VectorType &dst)> residual
std::function< void(const VectorType &src, VectorType &dst)> iteration_function
GrowingVectorMemory< VectorType > mem
std::exception_ptr pending_exception
std::function< void(const VectorType &rhs, VectorType &dst, const double tolerance)> solve_with_jacobian
std::function< VectorType &()> get_function_scaling
std::function< void(VectorType &)> reinit_vector
std::function< void(const VectorType &ycur, const VectorType &fcur, const VectorType &rhs, VectorType &dst)> solve_jacobian_system
#define DEAL_II_DEPRECATED
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcKINSOLError(int arg1)
static ::ExceptionBase & ExcFunctionNotProvided(std::string arg1)
#define DeclException1(Exception1, type1, outsequence)