LCOV - code coverage report
Current view: top level - src/auxscalarkernels - ConstantScalarAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
Date: 2025-07-17 01:28:37 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 "ConstantScalarAux.h"
      11             : 
      12             : registerMooseObject("MooseApp", ConstantScalarAux);
      13             : 
      14             : InputParameters
      15       14344 : ConstantScalarAux::validParams()
      16             : {
      17       14344 :   InputParameters params = AuxScalarKernel::validParams();
      18       14344 :   params.addClassDescription("Sets an auxiliary field variable to a controllable constant value.");
      19       14344 :   params.addRequiredParam<Real>("value", "The value to be set to the scalar variable.");
      20       14344 :   params.declareControllable("value");
      21       14344 :   return params;
      22           0 : }
      23             : 
      24          43 : ConstantScalarAux::ConstantScalarAux(const InputParameters & parameters)
      25          43 :   : AuxScalarKernel(parameters), _value(getParam<Real>("value"))
      26             : {
      27          39 : }
      28             : 
      29             : Real
      30        2403 : ConstantScalarAux::computeValue()
      31             : {
      32        2403 :   return _value;
      33             : }

Generated by: LCOV version 1.14