LCOV - code coverage report
Current view: top level - src/fvics - FVConstantIC.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 "FVConstantIC.h"
      11             : #include "libmesh/point.h"
      12             : 
      13             : registerMooseObject("MooseApp", FVConstantIC);
      14             : 
      15             : InputParameters
      16       19053 : FVConstantIC::validParams()
      17             : {
      18       19053 :   InputParameters params = FVInitialCondition::validParams();
      19       19053 :   params.addRequiredParam<Real>("value", "The value to be set in IC");
      20       19053 :   params.addClassDescription("Sets a constant field value.");
      21       19053 :   return params;
      22           0 : }
      23             : 
      24        2428 : FVConstantIC::FVConstantIC(const InputParameters & parameters)
      25        2428 :   : FVInitialCondition(parameters), _value(getParam<Real>("value"))
      26             : {
      27        2428 : }
      28             : 
      29             : Real
      30      399402 : FVConstantIC::value(const Point & /*p*/)
      31             : {
      32      399402 :   return _value;
      33             : }

Generated by: LCOV version 1.14