LCOV - code coverage report
Current view: top level - src/mfem/solvers - MFEMOperatorJacobiSmoother.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 16 17 94.1 %
Date: 2026-05-29 20:35:17 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        2608 : MFEMOperatorJacobiSmoother::validParams()
      19             : {
      20        2608 :   InputParameters params = MFEMSolverBase::validParams();
      21        2608 :   params.addClassDescription("MFEM solver for performing Jacobi smoothing of the equation system.");
      22             : 
      23        2608 :   return params;
      24           0 : }
      25             : 
      26         255 : MFEMOperatorJacobiSmoother::MFEMOperatorJacobiSmoother(const InputParameters & parameters)
      27         255 :   : MFEMSolverBase(parameters)
      28             : {
      29         255 :   constructSolver();
      30         255 : }
      31             : 
      32             : void
      33         255 : MFEMOperatorJacobiSmoother::constructSolver()
      34             : {
      35         255 :   _solver = std::make_unique<mfem::OperatorJacobiSmoother>();
      36         255 : }
      37             : 
      38             : void
      39          67 : MFEMOperatorJacobiSmoother::updateSolver(mfem::ParBilinearForm & a, mfem::Array<int> & tdofs)
      40             : {
      41          67 :   if (_lor)
      42             :   {
      43          31 :     checkSpectralEquivalence(a);
      44          31 :     _solver.reset(new mfem::LORSolver<mfem::OperatorJacobiSmoother>(a, tdofs));
      45             :   }
      46          67 : }
      47             : 
      48             : #endif

Generated by: LCOV version 1.14