LCOV - code coverage report
Current view: top level - src/mfem/ics - MFEMInitialCondition.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 12 12 100.0 %
Date: 2025-08-08 20:01:16 Functions: 2 2 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 "MFEMInitialCondition.h"
      13             : #include <mfem.hpp>
      14             : 
      15             : InputParameters
      16       17452 : MFEMInitialCondition::validParams()
      17             : {
      18       17452 :   auto params = MFEMGeneralUserObject::validParams();
      19       17452 :   params.addRequiredParam<VariableName>("variable",
      20             :                                         "The variable to apply the initial condition on.");
      21       17452 :   params.registerBase("InitialCondition");
      22       17452 :   params.addClassDescription(
      23             :       "Base class for objects that set the initial condition on an MFEM variable.");
      24             :   // We cannot generally execute this at construction time since the coefficient may be based on a
      25             :   // MOOSE function which is not itself setup until its initialSetup is called. UserObject initial
      26             :   // execution occurs after function initialSetup
      27       34904 :   params.set<ExecFlagEnum>("execute_on") = {EXEC_INITIAL};
      28       17452 :   params.suppressParameter<ExecFlagEnum>("execute_on");
      29       17452 :   return params;
      30       17452 : }
      31             : 
      32          96 : MFEMInitialCondition::MFEMInitialCondition(const InputParameters & params)
      33          96 :   : MFEMGeneralUserObject(params)
      34             : {
      35          96 : }
      36             : 
      37             : #endif

Generated by: LCOV version 1.14