#include <SlepcEigenSolverConfiguration.h>
|
| typedef std::map< std::string, std::pair< unsigned int, unsigned int > > | Counts |
| |
◆ SlepcEigenSolverConfiguration()
Constructur: get a reference to the SlepcEigenSolver variable to be able to manipulate it.
Constructor: get a reference to the SlepcEigenSolver variable to be able to manipulate it.
Definition at line 24 of file SlepcEigenSolverConfiguration.C.
32{
33}
libMesh::SlepcEigenSolver< libMesh::Number > & _slepc_solver
The slepc eigen solver object that we are configuring.
EigenProblem & _eigen_problem
const NonlinearEigenSystem & _nl_eigen_sys
The system that owns the SLEPc solver.
SolverConfiguration()=default
◆ configure_solver()
| void SlepcEigenSolverConfiguration::configure_solver |
( |
| ) |
|
|
overridevirtual |
Implements libMesh::SolverConfiguration.
Definition at line 36 of file SlepcEigenSolverConfiguration.C.
37{
39 {
40
42
45
46
50
51
52
53 LibmeshPetscCallA(
56
57
58
63 NULL));
64
65
67
68 LibmeshPetscCallA(
70 EPSMonitorSet(
72 }
73}
bool isNonlinearEigenvalueSolver(unsigned int eigen_sys_num) const
virtual void initPetscOutputAndSomeSolverSettings() override
Hook up monitors for SNES and KSP.
SolverParams & solverParams(unsigned int solver_sys_num=0)
Get the solver parameters.
bool _customized_pc_for_eigen
unsigned int number() const
Gets the number of this system.
const Parallel::Communicator & comm() const
PetscErrorCode mooseSlepcEPSSNESKSPSetPCSide(FEProblemBase &problem, EPS eps)
Allow users to specify PC side.
PetscErrorCode mooseSlepcEPSSNESSetCustomizePC(EPS eps)
Attach a customized PC.
PetscErrorCode mooseSlepcEPSSNESSetUpOptionPrefix(EPS eps)
Get rid of prefix "-eps_power" for SNES, KSP, PC, etc.
PetscErrorCode mooseSlepcEPSMonitor(EPS eps, PetscInt its, PetscInt nconv, PetscScalar *eigr, PetscScalar *eigi, PetscReal *errest, PetscInt nest, void *mctx)
A customized solver monitor to print out eigenvalue.
PetscErrorCode mooseSlepcStoppingTest(EPS eps, PetscInt its, PetscInt max_it, PetscInt nconv, PetscInt nev, EPSConvergedReason *reason, void *ctx)
A customized convergence checker.
◆ _eigen_problem
◆ _nl_eigen_sys
◆ _slepc_solver
The documentation for this class was generated from the following files: