Chi-Tech
|
#include <wgs_context.h>
Public Member Functions | |
WGSContext (LBSSolver &lbs_solver, LBSGroupset &groupset, const SetSourceFunction &set_source_function, int lhs_scope, int rhs_scope, bool log_info) | |
virtual void | PreSetupCallback () |
virtual void | SetPreconditioner (SolverType &solver) |
virtual void | PostSetupCallback () |
virtual void | PreSolveCallback () |
int | MatrixAction (MatType &matrix, VecType &action_vector, VecType &action) override |
virtual std::pair< int64_t, int64_t > | SystemSize ()=0 |
virtual void | ApplyInverseTransportOperator (int scope)=0 |
virtual void | PostSolveCallback () |
int | MatrixAction (Mat &matrix, Vec &action_vector, Vec &action) |
Public Member Functions inherited from chi_math::LinearSolverContext< MatType, VecType > | |
virtual int | MatrixAction (MatType &matrix, VecType &vector, VecType &action) |
virtual | ~LinearSolverContext ()=default |
Data Fields | |
LBSSolver & | lbs_solver_ |
LBSGroupset & | groupset_ |
const SetSourceFunction & | set_source_function_ |
int | lhs_src_scope_ |
int | rhs_src_scope_ |
bool | log_info_ = true |
size_t | counter_applications_of_inv_op_ = 0 |
Data Fields inherited from chi_math::LinearSolverContext< MatType, VecType > | |
double | rhs_norm = 0.0 |
double | rhs_preconditioned_norm = 0.0 |
double | custom_residual_scale = 1.0 |
ResidualScaleType | residual_scale_type = ResidualScaleType::NONE |
Definition at line 25 of file wgs_context.h.
|
inline |
Definition at line 35 of file wgs_context.h.
|
pure virtual |
This operation applies the inverse of the transform operator in the form Ay = x where the the vector x's underlying implementing is always LBS's q_moments_local vextor.
Implemented in lbs::MIPWGSContext2< MatType, VecType, SolverType >, lbs::SweepWGSContext< MatType, VecType, SolverType >, lbs::MIPWGSContext2< MatType, VecType, SolverType >, and lbs::SweepWGSContext< MatType, VecType, SolverType >.
int lbs::WGSContext< Mat, Vec, KSP >::MatrixAction | ( | Mat & | matrix, |
Vec & | action_vector, | ||
Vec & | action | ||
) |
Definition at line 11 of file wgs_context_matrix_action.cc.
|
overridevirtual |
Reimplemented from chi_math::LinearSolverContext< MatType, VecType >.
|
inlinevirtual |
Definition at line 53 of file wgs_context.h.
|
inlinevirtual |
Reimplemented in lbs::MIPWGSContext2< MatType, VecType, SolverType >, lbs::SweepWGSContext< MatType, VecType, SolverType >, lbs::MIPWGSContext2< MatType, VecType, SolverType >, and lbs::SweepWGSContext< MatType, VecType, SolverType >.
Definition at line 68 of file wgs_context.h.
|
inlinevirtual |
Reimplemented in lbs::MIPWGSContext2< MatType, VecType, SolverType >, lbs::SweepWGSContext< MatType, VecType, SolverType >, lbs::MIPWGSContext2< MatType, VecType, SolverType >, and lbs::SweepWGSContext< MatType, VecType, SolverType >.
Definition at line 51 of file wgs_context.h.
|
inlinevirtual |
Definition at line 55 of file wgs_context.h.
|
inlinevirtual |
Reimplemented in lbs::MIPWGSContext2< MatType, VecType, SolverType >, and lbs::SweepWGSContext< MatType, VecType, SolverType >.
Definition at line 52 of file wgs_context.h.
|
pure virtual |
size_t lbs::WGSContext< MatType, VecType, SolverType >::counter_applications_of_inv_op_ = 0 |
Definition at line 33 of file wgs_context.h.
LBSGroupset& lbs::WGSContext< MatType, VecType, SolverType >::groupset_ |
Definition at line 28 of file wgs_context.h.
LBSSolver& lbs::WGSContext< MatType, VecType, SolverType >::lbs_solver_ |
Definition at line 27 of file wgs_context.h.
int lbs::WGSContext< MatType, VecType, SolverType >::lhs_src_scope_ |
Definition at line 30 of file wgs_context.h.
bool lbs::WGSContext< MatType, VecType, SolverType >::log_info_ = true |
Definition at line 32 of file wgs_context.h.
int lbs::WGSContext< MatType, VecType, SolverType >::rhs_src_scope_ |
Definition at line 31 of file wgs_context.h.
const SetSourceFunction& lbs::WGSContext< MatType, VecType, SolverType >::set_source_function_ |
Definition at line 29 of file wgs_context.h.