Chi-Tech
preconditioner_apply.cc
Go to the documentation of this file.
1
#include "
preconditioner_apply.h
"
2
3
#include "
preconditioner_context.h
"
4
5
#include <petscksp.h>
6
7
namespace
chi_math
8
{
9
10
template
<>
11
int
PreconditionerApplication
(PC pc,
Vec
vector,
Vec
action)
12
{
13
PreconditionerContext<PC,Vec>
* context;
14
PCShellGetContext(pc, &context);
15
16
context->
PCApply
(pc, vector, action);
17
18
return
0;
19
}
20
21
}
//namespace chi_math
chi_math
Definition:
chi_runtime.h:42
chi_math::PreconditionerApplication
int PreconditionerApplication(PC pc, Vec vector, Vec action)
Definition:
preconditioner_apply.cc:11
Vec
struct _p_Vec * Vec
Definition:
petsc_forward_declarations.h:9
preconditioner_apply.h
preconditioner_context.h
chi_math::PreconditionerContext
Definition:
preconditioner_context.h:9
chi_math::PreconditionerContext::PCApply
virtual int PCApply(PCType &pc, VecType &vector, VecType &action)
Definition:
preconditioner_context.h:10
framework
math
LinearSolver
preconditioner_apply.cc
Generated by
1.9.3