LCOV - code coverage report
Current view: top level - src/mfem/ics - MFEMInitialCondition.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 12 100.0 %
Date: 2025-07-17 01:28:37 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 MFEM_ENABLED
      11             : 
      12             : #include "MFEMInitialCondition.h"
      13             : #include <mfem.hpp>
      14             : 
      15             : InputParameters
      16       17360 : MFEMInitialCondition::validParams()
      17             : {
      18       17360 :   auto params = MFEMGeneralUserObject::validParams();
      19       17360 :   params.addRequiredParam<VariableName>("variable",
      20             :                                         "The variable to apply the initial condition on.");
      21       17360 :   params.registerBase("InitialCondition");
      22       17360 :   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       34720 :   params.set<ExecFlagEnum>("execute_on") = {EXEC_INITIAL};
      28       17360 :   params.suppressParameter<ExecFlagEnum>("execute_on");
      29       17360 :   return params;
      30       17360 : }
      31             : 
      32          50 : MFEMInitialCondition::MFEMInitialCondition(const InputParameters & params)
      33          50 :   : MFEMGeneralUserObject(params)
      34             : {
      35          50 : }
      36             : 
      37             : #endif

Generated by: LCOV version 1.14