LCOV - code coverage report
Current view: top level - src/mfem/actions - AddMFEMFESpaceAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 26ef6a Lines: 11 12 91.7 %
Date: 2026-06-24 21:19:51 Functions: 3 3 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 "AddMFEMFESpaceAction.h"
      13             : 
      14             : registerMooseAction("MooseApp", AddMFEMFESpaceAction, "add_mfem_fespaces");
      15             : 
      16             : InputParameters
      17        2539 : AddMFEMFESpaceAction::validParams()
      18             : {
      19        2539 :   InputParameters params = MooseObjectAction::validParams();
      20        2539 :   params.addClassDescription("Add a MFEM FESpace object to the simulation.");
      21        2539 :   return params;
      22           0 : }
      23             : 
      24        2511 : AddMFEMFESpaceAction::AddMFEMFESpaceAction(const InputParameters & parameters)
      25        2511 :   : MooseObjectAction(parameters)
      26             : {
      27        2511 : }
      28             : 
      29             : void
      30        2511 : AddMFEMFESpaceAction::act()
      31             : {
      32        2511 :   if (_problem->feBackend() == Moose::FEBackend::MFEM)
      33        2511 :     static_cast<MFEMProblem &>(*_problem).addFESpace(_type, _name, _moose_object_pars);
      34        2511 : }
      35             : 
      36             : #endif

Generated by: LCOV version 1.14