LCOV - code coverage report
Current view: top level - src/controllogic - CopyPostprocessorValueControl.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #32971 (54bef8) with base c6cf66 Lines: 12 13 92.3 %
Date: 2026-05-29 20:41:18 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 "CopyPostprocessorValueControl.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", CopyPostprocessorValueControl);
      13             : 
      14             : InputParameters
      15        9916 : CopyPostprocessorValueControl::validParams()
      16             : {
      17        9916 :   InputParameters params = THMControl::validParams();
      18       19832 :   params.addRequiredParam<PostprocessorName>("postprocessor", "The name of the postprocessor.");
      19        9916 :   params.addClassDescription("Forwards the value of a postprocessor to a ControlData named with "
      20             :                              "the name of the postprocessor.");
      21        9916 :   return params;
      22           0 : }
      23             : 
      24        4956 : CopyPostprocessorValueControl::CopyPostprocessorValueControl(const InputParameters & parameters)
      25             :   : THMControl(parameters),
      26        4956 :     _value(declareControlData<Real>(getParam<PostprocessorName>("postprocessor"))),
      27        9912 :     _pps_value(getPostprocessorValue("postprocessor"))
      28             : {
      29        4956 : }
      30             : 
      31             : void
      32       37819 : CopyPostprocessorValueControl::execute()
      33             : {
      34       37819 :   _value = _pps_value;
      35       37819 : }

Generated by: LCOV version 1.14