LCOV - code coverage report
Current view: top level - src/mfem/actions - AddMFEMComplexBCComponentAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 4 17 23.5 %
Date: 2026-05-29 20:35:17 Functions: 1 3 33.3 %
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 "AddMFEMComplexBCComponentAction.h"
      13             : 
      14             : registerMooseAction("MooseApp", AddMFEMComplexBCComponentAction, "add_mfem_complex_bc_components");
      15             : 
      16             : InputParameters
      17          28 : AddMFEMComplexBCComponentAction::validParams()
      18             : {
      19          28 :   InputParameters params = MooseObjectAction::validParams();
      20          28 :   params.addClassDescription(
      21             :       "Add an MFEMIntegratedBC to serve as the real or imaginary component of "
      22             :       "an MFEMComplexIntegratedBC.");
      23          28 :   return params;
      24           0 : }
      25             : 
      26           0 : AddMFEMComplexBCComponentAction::AddMFEMComplexBCComponentAction(const InputParameters & parameters)
      27           0 :   : MooseObjectAction(parameters)
      28             : {
      29           0 : }
      30             : 
      31             : void
      32           0 : AddMFEMComplexBCComponentAction::act()
      33             : {
      34           0 :   std::vector<std::string> elements;
      35           0 :   MooseUtils::tokenize<std::string>(_pars.blockFullpath(), elements);
      36           0 :   MFEMProblem * mfem_problem = dynamic_cast<MFEMProblem *>(_problem.get());
      37             : 
      38           0 :   if (mfem_problem && _name == "RealComponent")
      39           0 :     mfem_problem->addRealComponentToBC(_type, elements[elements.size() - 2], _moose_object_pars);
      40           0 :   else if (mfem_problem && _name == "ImagComponent")
      41           0 :     mfem_problem->addImagComponentToBC(_type, elements[elements.size() - 2], _moose_object_pars);
      42           0 : }
      43             : 
      44             : #endif

Generated by: LCOV version 1.14