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

Generated by: LCOV version 1.14