Chi-Tech
nl_keigen_ags_context.h
Go to the documentation of this file.
1
#ifndef CHITECH_LBS_NL_KEIGEN_AGS_CONTEXT_H
2
#define CHITECH_LBS_NL_KEIGEN_AGS_CONTEXT_H
3
4
#include "
math/NonLinearSolver/NonLinearSolverContext.h
"
5
6
#include "
A_LBSSolver/lbs_solver.h
"
7
#include "
A_LBSSolver/IterativeMethods/snes_k_residual_func_context.h
"
8
9
#include <vector>
10
#include <cstdint>
11
12
namespace
lbs
13
{
14
class
LBSSolver;
15
}
16
17
namespace
lbs
18
{
19
20
template
<
class
VecType,
class
SolverType>
21
struct
NLKEigenAGSContext
:
22
public
chi_math::NonLinearSolverContext
<VecType,SolverType>
23
{
24
LBSSolver
&
lbs_solver_
;
25
KResidualFunctionContext
kresid_func_context_
;
26
27
std::vector<int>
groupset_ids
;
28
29
explicit
NLKEigenAGSContext
(
LBSSolver
& lbs_solver) :
30
lbs_solver_
(lbs_solver),
31
kresid_func_context_
({lbs_solver.
TextName
(), 1.0})
32
{}
33
34
virtual
~NLKEigenAGSContext
()
override
=
default
;
35
};
36
37
38
}
//namespace lbs
39
40
#endif
//CHITECH_LBS_NL_KEIGEN_AGS_CONTEXT_H
NonLinearSolverContext.h
chi_physics::Solver::TextName
std::string TextName() const
Definition:
chi_solver.cc:116
lbs::LBSSolver
Definition:
lbs_solver.h:50
lbs_solver.h
lbs
Definition:
acceleration.cc:10
snes_k_residual_func_context.h
chi_math::NonLinearSolverContext
Definition:
NonLinearSolverContext.h:9
lbs::KResidualFunctionContext
Definition:
snes_k_residual_func_context.h:8
lbs::NLKEigenAGSContext
Definition:
nl_keigen_ags_context.h:23
lbs::NLKEigenAGSContext::groupset_ids
std::vector< int > groupset_ids
Definition:
nl_keigen_ags_context.h:27
lbs::NLKEigenAGSContext::~NLKEigenAGSContext
virtual ~NLKEigenAGSContext() override=default
lbs::NLKEigenAGSContext::NLKEigenAGSContext
NLKEigenAGSContext(LBSSolver &lbs_solver)
Definition:
nl_keigen_ags_context.h:29
lbs::NLKEigenAGSContext::lbs_solver_
LBSSolver & lbs_solver_
Definition:
nl_keigen_ags_context.h:24
lbs::NLKEigenAGSContext::kresid_func_context_
KResidualFunctionContext kresid_func_context_
Definition:
nl_keigen_ags_context.h:25
modules
LinearBoltzmannSolvers
A_LBSSolver
IterativeMethods
nl_keigen_ags_context.h
Generated by
1.9.3