Chi-Tech
preconditioner_apply.cc
Go to the documentation of this file.
2
4
5#include <petscksp.h>
6
7namespace chi_math
8{
9
10template<>
11int PreconditionerApplication(PC pc, Vec vector, Vec action)
12{
14 PCShellGetContext(pc, &context);
15
16 context->PCApply(pc, vector, action);
17
18 return 0;
19}
20
21}//namespace chi_math
int PreconditionerApplication(PC pc, Vec vector, Vec action)
struct _p_Vec * Vec
virtual int PCApply(PCType &pc, VecType &vector, VecType &action)