https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMMatrixFreeAMS.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#ifdef MOOSE_MFEM_ENABLED
11
12#pragma once
13
15
19class MFEMMatrixFreeAMS : public Moose::MFEM::LORLinearSolverBase<mfem::MatrixFreeAMS>
20{
21public:
23
25
26 void ConstructSolver() override;
27
28protected:
29 // Constructs the mfem::MatrixFreeAMS solver for the given operator.
30 virtual void SetOperatorImpl(const mfem::Operator & op) override;
31 virtual void SetSolverParameters(mfem::MatrixFreeAMS &) override {}
32
33private:
34 mfem::Coefficient & _alpha_coef;
35 mfem::Coefficient & _beta_coef;
36 const int _inner_pi_its;
37 const int _inner_g_its;
38};
39
40#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Wrapper for mfem::MatrixFreeAMS solver.
mfem::Coefficient & _beta_coef
virtual void SetOperatorImpl(const mfem::Operator &op) override
Updates the solver at the operator level.
virtual void SetSolverParameters(mfem::MatrixFreeAMS &) override
Update the wrapped MFEM solver parameters.
void ConstructSolver() override
Override in derived classes to construct and set the solver options.
static InputParameters validParams()
mfem::Coefficient & _alpha_coef
Base class for LOR compatible linear MFEM solvers and preconditioners.