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
source
sundials
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
16
#include <
deal.II/sundials/sunnonlinsol_wrapper.h
>
17
18
#ifdef DEAL_II_WITH_SUNDIALS
19
20
# include <sunnonlinsol/sunnonlinsol_fixedpoint.h>
21
22
#endif
23
24
DEAL_II_NAMESPACE_OPEN
25
26
#ifdef DEAL_II_WITH_SUNDIALS
27
28
namespace
SUNDIALS
29
{
30
namespace
internal
31
{
32
SundialsNonlinearSolver
33
make_fixed_point_nonlinear_solver
(N_Vector y_template,
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;
39
return
SundialsNonlinearSolver
(
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
51
DEAL_II_NAMESPACE_CLOSE
config.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition
config.h:38
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition
config.h:39
SUNDIALS::internal::SundialsNonlinearSolver
SundialsHandle< SundialsNonlinearSolverTraits > SundialsNonlinearSolver
Definition
sunnonlinsol_wrapper.h:55
SUNDIALS::internal::make_fixed_point_nonlinear_solver
SundialsNonlinearSolver make_fixed_point_nonlinear_solver(N_Vector y_template, int anderson_acceleration_subspace, const InvocationContext &inv_ctx)
Definition
sunnonlinsol_wrapper.cc:33
SUNDIALS
Definition
arkode.h:63
internal
Definition
aligned_vector.h:756
SUNDIALS::internal::InvocationContext
Definition
invocation_context.h:97
SUNDIALS::internal::InvocationContext::arkode_ctx
SharedSUNContext arkode_ctx
Definition
invocation_context.h:100
sunnonlinsol_wrapper.h
Generated by
1.9.8