LCOV - code coverage report
Current view: top level - src/functions - FunctionBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 13 14 92.9 %
Date: 2026-05-29 20:35:17 Functions: 4 5 80.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             : #include "FunctionBase.h"
      11             : 
      12             : namespace Moose
      13             : {
      14             : 
      15             : InputParameters
      16      212087 : FunctionBase::validParams()
      17             : {
      18      212087 :   InputParameters params = MooseObject::validParams();
      19      212087 :   params += SetupInterface::validParams();
      20             : 
      21             :   // Functions should be executed on the fly
      22      424174 :   params.suppressParameter<ExecFlagEnum>("execute_on");
      23             : 
      24      212087 :   params.registerBase("Function");
      25             : 
      26      212087 :   return params;
      27           0 : }
      28             : 
      29       53545 : FunctionBase::FunctionBase(const InputParameters & parameters)
      30             :   : MooseObject(parameters),
      31             :     SetupInterface(this),
      32             :     TransientInterface(this),
      33             :     PostprocessorInterface(this),
      34             :     UserObjectInterface(this),
      35             :     Restartable(this, "Functions"),
      36             :     MeshChangedInterface(parameters),
      37      160635 :     ScalarCoupleable(this)
      38             : {
      39       53545 : }
      40             : 
      41             : #ifdef MOOSE_KOKKOS_ENABLED
      42       25537 : FunctionBase::FunctionBase(const FunctionBase & object, const Moose::Kokkos::FunctorCopy & key)
      43             :   : MooseObject(object, key),
      44             :     SetupInterface(object, key),
      45             :     TransientInterface(object, key),
      46             :     PostprocessorInterface(object, key),
      47             :     UserObjectInterface(object, key),
      48             :     Restartable(object, key),
      49             :     MeshChangedInterface(object, key),
      50       25537 :     ScalarCoupleable(object, key)
      51             : {
      52       25537 : }
      53             : #endif
      54             : 
      55       76440 : FunctionBase::~FunctionBase() {}
      56             : 
      57             : } // namespace Moose

Generated by: LCOV version 1.14