www.mooseframework.org
SlepcSupport.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef SLEPCSUPPORT_H
16 #define SLEPCSUPPORT_H
17 
18 #include "libmesh/libmesh_config.h"
19 
20 #ifdef LIBMESH_HAVE_SLEPC
21 
22 #include "Moose.h"
23 
24 class EigenProblem;
25 class InputParameters;
26 
27 namespace Moose
28 {
29 namespace SlepcSupport
30 {
39 void storeSlepcOptions(FEProblemBase & fe_problem, const InputParameters & params);
40 void storeSlepcEigenProblemOptions(EigenProblem & eigen_problem, const InputParameters & params);
41 void slepcSetOptions(EigenProblem & eigen_problem, const InputParameters & params);
42 void setSlepcEigenSolverTolerances(EigenProblem & eigen_problem, const InputParameters & params);
43 void setSlepcOutputOptions(EigenProblem & eigen_problem);
44 
45 PetscErrorCode mooseSlepcEigenFormJacobianA(SNES snes, Vec x, Mat jac, Mat pc, void * ctx);
46 PetscErrorCode mooseSlepcEigenFormJacobianB(SNES snes, Vec x, Mat jac, Mat pc, void * ctx);
47 PetscErrorCode mooseSlepcEigenFormFunctionA(SNES snes, Vec x, Vec r, void * ctx);
48 PetscErrorCode mooseSlepcEigenFormFunctionB(SNES snes, Vec x, Vec r, void * ctx);
49 } // namespace SlepcSupport
50 } // namespace moose
51 
52 #endif // LIBMESH_HAVE_SLEPC
53 
54 #endif // SLEPCSUPPORT_H
static PetscErrorCode Vec Mat jac
PetscErrorCode mooseSlepcEigenFormJacobianB(SNES snes, Vec x, Mat jac, Mat pc, void *ctx)
Definition: SlepcSupport.C:488
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static PetscErrorCode Vec Mat Mat pc
PetscErrorCode mooseSlepcEigenFormFunctionA(SNES snes, Vec x, Vec r, void *ctx)
Definition: SlepcSupport.C:516
static PetscErrorCode Vec x
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
void setSlepcEigenSolverTolerances(EigenProblem &eigen_problem, const InputParameters &params)
Definition: SlepcSupport.C:125
InputParameters getSlepcValidParams(InputParameters &params)
Definition: SlepcSupport.C:43
PetscErrorCode mooseSlepcEigenFormJacobianA(SNES snes, Vec x, Mat jac, Mat pc, void *ctx)
Definition: SlepcSupport.C:479
PetscErrorCode mooseSlepcEigenFormFunctionB(SNES snes, Vec x, Vec r, void *ctx)
Definition: SlepcSupport.C:525
void storeSlepcEigenProblemOptions(EigenProblem &eigen_problem, const InputParameters &params)
Definition: SlepcSupport.C:176
void setSlepcOutputOptions(EigenProblem &eigen_problem)
Definition: SlepcSupport.C:263
void storeSlepcOptions(FEProblemBase &fe_problem, const InputParameters &params)
Definition: SlepcSupport.C:213
Definition: Moose.h:84
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Definition: EigenProblem.h:32
static PetscErrorCode Vec Mat Mat void * ctx
void slepcSetOptions(EigenProblem &eigen_problem, const InputParameters &params)
Definition: SlepcSupport.C:438
InputParameters getSlepcEigenProblemValidParams()
Definition: SlepcSupport.C:71