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.cc
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
14#include <deal.II/base/config.h>
15
17
18#ifdef DEAL_II_WITH_SUNDIALS
19
20# include <sunnonlinsol/sunnonlinsol_fixedpoint.h>
21
22#endif
23
25
26#ifdef DEAL_II_WITH_SUNDIALS
27
28namespace SUNDIALS
29{
30 namespace internal
31 {
34 int anderson_acceleration_subspace,
35 const InvocationContext &inv_ctx)
36 {
37# if DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
38 (void)inv_ctx;
40 SUNNonlinSol_FixedPoint(y_template, anderson_acceleration_subspace));
41# else
42 return SundialsNonlinearSolver(SUNNonlinSol_FixedPoint(
43 y_template, anderson_acceleration_subspace, inv_ctx.arkode_ctx));
44# endif
45 }
46 } // namespace internal
47} // namespace SUNDIALS
48
49#endif
50
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
SundialsHandle< SundialsNonlinearSolverTraits > SundialsNonlinearSolver
SundialsNonlinearSolver make_fixed_point_nonlinear_solver(N_Vector y_template, int anderson_acceleration_subspace, const InvocationContext &inv_ctx)