deal.II version GIT relicensing-7058-gb35ee29762 2026-11-11 09:30:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
sunnonlinsol_wrapper.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_sundials_sunnonlinsol_wrapper_h
14#define dealii_sundials_sunnonlinsol_wrapper_h
15
16#include <deal.II/base/config.h>
17
18#ifdef DEAL_II_WITH_SUNDIALS
19
22
23# include <sundials/sundials_nonlinearsolver.h>
24# include <sundials/sundials_nvector.h>
25
26#endif
27
29
30#ifdef DEAL_II_WITH_SUNDIALS
31namespace SUNDIALS
32{
33 namespace internal
34 {
40 {
41 using Handle = SUNNonlinearSolver;
42
43 static void
44 free(Handle solver)
45 {
46 SUNNonlinSolFree(solver);
47 }
48 };
49
56
69 make_fixed_point_nonlinear_solver(N_Vector y_template,
70 int anderson_acceleration_subspace,
71 const InvocationContext &inv_ctx);
72 } // namespace internal
73} // namespace SUNDIALS
74#endif
75
77#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
SundialsNonlinearSolver make_fixed_point_nonlinear_solver(N_Vector y_template, int anderson_acceleration_subspace, const InvocationContext &inv_ctx)