LCOV - code coverage report
Current view: top level - src/auxkernels - ConstantAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 11 12 91.7 %
Date: 2025-08-08 20:01:16 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             : #include "ConstantAux.h"
      11             : 
      12             : registerMooseObject("MooseApp", ConstantAux);
      13             : 
      14             : InputParameters
      15       15690 : ConstantAux::validParams()
      16             : {
      17       15690 :   InputParameters params = AuxKernel::validParams();
      18       15690 :   params.addClassDescription("Creates a constant field in the domain.");
      19       15690 :   params.addParam<Real>("value", 0.0, "Some constant value that can be read from the input file");
      20       15690 :   params.declareControllable("value");
      21       15690 :   return params;
      22           0 : }
      23             : 
      24         734 : ConstantAux::ConstantAux(const InputParameters & parameters)
      25         734 :   : AuxKernel(parameters), _value(getParam<Real>("value"))
      26             : {
      27         734 : }
      28             : 
      29             : Real
      30     3149405 : ConstantAux::computeValue()
      31             : {
      32     3149405 :   return _value;
      33             : }

Generated by: LCOV version 1.14