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

Generated by: LCOV version 1.14