LCOV - code coverage report
Current view: top level - src/mfem/solvers - MFEMSuperLU.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31405 (292dce) with base fef103 Lines: 14 16 87.5 %
Date: 2025-09-04 07:52:05 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 "MFEMSuperLU.h"
      13             : #include "MFEMProblem.h"
      14             : 
      15             : registerMooseObject("MooseApp", MFEMSuperLU);
      16             : 
      17             : InputParameters
      18        8664 : MFEMSuperLU::validParams()
      19             : {
      20        8664 :   InputParameters params = MFEMSolverBase::validParams();
      21        8664 :   params.addClassDescription("MFEM solver for performing direct solves of sparse systems in "
      22             :                              "parallel using the SuperLU_DIST library.");
      23             : 
      24        8664 :   return params;
      25           0 : }
      26             : 
      27          17 : MFEMSuperLU::MFEMSuperLU(const InputParameters & parameters) : MFEMSolverBase(parameters)
      28             : {
      29          17 :   constructSolver(parameters);
      30          17 : }
      31             : 
      32             : void
      33          17 : MFEMSuperLU::constructSolver(const InputParameters &)
      34             : {
      35          17 :   _solver = std::make_unique<Moose::MFEM::SuperLUSolver>(
      36          17 :       getMFEMProblem().mesh().getMFEMParMesh().GetComm());
      37          17 : }
      38             : 
      39             : void
      40          17 : MFEMSuperLU::updateSolver(mfem::ParBilinearForm &, mfem::Array<int> &)
      41             : {
      42          17 :   if (_lor)
      43           0 :     mooseError("SuperLU solver does not support LOR solve");
      44          17 : }
      45             : 
      46             : #endif

Generated by: LCOV version 1.14