LCOV - code coverage report
Current view: top level - src/mfem/solvers - MFEMOperatorJacobiSmoother.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31653 (2d163b) with base 0cc44f Lines: 16 17 94.1 %
Date: 2025-11-04 20:38:02 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #include "MFEMOperatorJacobiSmoother.h"
      13             : #include "MFEMProblem.h"
      14             : 
      15             : registerMooseObject("MooseApp", MFEMOperatorJacobiSmoother);
      16             : 
      17             : InputParameters
      18        9488 : MFEMOperatorJacobiSmoother::validParams()
      19             : {
      20        9488 :   InputParameters params = MFEMSolverBase::validParams();
      21        9488 :   params.addClassDescription("MFEM solver for performing Jacobi smoothing of the equation system.");
      22             : 
      23        9488 :   return params;
      24           0 : }
      25             : 
      26          68 : MFEMOperatorJacobiSmoother::MFEMOperatorJacobiSmoother(const InputParameters & parameters)
      27          68 :   : MFEMSolverBase(parameters)
      28             : {
      29          68 :   constructSolver(parameters);
      30          68 : }
      31             : 
      32             : void
      33          68 : MFEMOperatorJacobiSmoother::constructSolver(const InputParameters &)
      34             : {
      35          68 :   _solver = std::make_unique<mfem::OperatorJacobiSmoother>();
      36          68 : }
      37             : 
      38             : void
      39          77 : MFEMOperatorJacobiSmoother::updateSolver(mfem::ParBilinearForm & a, mfem::Array<int> & tdofs)
      40             : {
      41          77 :   if (_lor)
      42             :   {
      43          36 :     checkSpectralEquivalence(a);
      44          36 :     _solver.reset(new mfem::LORSolver<mfem::OperatorJacobiSmoother>(a, tdofs));
      45             :   }
      46          77 : }
      47             : 
      48             : #endif

Generated by: LCOV version 1.14