LCOV - code coverage report
Current view: top level - src/ics - ConstantIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 11 90.9 %
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 "ConstantIC.h"
      11             : #include "libmesh/point.h"
      12             : 
      13             : registerMooseObject("MooseApp", ConstantIC);
      14             : 
      15             : InputParameters
      16       40861 : ConstantIC::validParams()
      17             : {
      18       40861 :   InputParameters params = InitialCondition::validParams();
      19       40861 :   params.addRequiredParam<Real>("value", "The value to be set in IC");
      20       40861 :   params.addClassDescription("Sets a constant field value.");
      21       40861 :   return params;
      22           0 : }
      23             : 
      24       13980 : ConstantIC::ConstantIC(const InputParameters & parameters)
      25       13980 :   : InitialCondition(parameters), _value(getParam<Real>("value"))
      26             : {
      27       13980 : }
      28             : 
      29             : Real
      30     4038827 : ConstantIC::value(const Point & /*p*/)
      31             : {
      32     4038827 :   return _value;
      33             : }

Generated by: LCOV version 1.14