LCOV - code coverage report
Current view: top level - src/reporters - ConstantReporter.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 24 25 96.0 %
Date: 2025-07-17 01:28:37 Functions: 2 2 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 "ConstantReporter.h"
      11             : 
      12             : registerMooseObject("MooseApp", ConstantReporter);
      13             : 
      14             : InputParameters
      15       16947 : ConstantReporter::validParams()
      16             : {
      17       16947 :   InputParameters params = GeneralReporter::validParams();
      18       16947 :   params.addClassDescription("Reporter with constant values to be accessed by other objects, can "
      19             :                              "be modified using transfers.");
      20             : 
      21       16947 :   params += addReporterTypeParams<int>("integer");
      22       16947 :   params += addReporterTypeParams<Real>("real");
      23       16947 :   params += addReporterTypeParams<std::string>("string");
      24       16947 :   params += addReporterTypeParams<dof_id_type>("dof_id_type");
      25       16947 :   params += addReporterTypeParams<Point>("point");
      26             : 
      27       16947 :   return params;
      28           0 : }
      29             : 
      30        1333 : ConstantReporter::ConstantReporter(const InputParameters & parameters) : GeneralReporter(parameters)
      31             : {
      32        1333 :   declareConstantReporterValues<int>("integer");
      33        1321 :   declareConstantReporterValues<Real>("real");
      34        1321 :   declareConstantReporterValues<std::string>("string");
      35        1321 :   declareConstantReporterValues<dof_id_type>("dof_id_type");
      36        1321 :   declareConstantReporterValues<Point>("point");
      37        1321 :   declareConstantVectorReporterValues<int>("integer");
      38        1321 :   declareConstantVectorReporterValues<Real>("real");
      39        1321 :   declareConstantVectorReporterValues<std::string>("string");
      40        1321 :   declareConstantVectorReporterValues<dof_id_type>("dof_id_type");
      41        1321 :   declareConstantVectorVectorReporterValues<int>("integer");
      42        1321 :   declareConstantVectorVectorReporterValues<Real>("real");
      43        1321 :   declareConstantVectorVectorReporterValues<std::string>("string");
      44        1321 :   declareConstantVectorVectorReporterValues<dof_id_type>("dof_id_type");
      45        1321 : }

Generated by: LCOV version 1.14