LCOV - code coverage report
Current view: top level - src/reporters - ConstantReporter.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 28 29 96.6 %
Date: 2026-05-29 20:35:17 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        5835 : ConstantReporter::validParams()
      16             : {
      17        5835 :   InputParameters params = GeneralReporter::validParams();
      18       11670 :   params.addClassDescription("Reporter with constant values to be accessed by other objects, can "
      19             :                              "be modified using transfers.");
      20             : 
      21       11670 :   params += addReporterTypeParams<int>("integer");
      22       11670 :   params += addReporterTypeParams<Real>("real");
      23       11670 :   params += addReporterTypeParams<std::string>("string");
      24       11670 :   params += addReporterTypeParams<dof_id_type>("dof_id_type");
      25       11670 :   params += addReporterTypeParams<Point>("point");
      26       11670 :   params += addReporterTypeParams<RealEigenVector>("eigen_vector", false, false);
      27        5835 :   params += addReporterTypeParams<RealEigenMatrix>("eigen_matrix", false, false);
      28             : 
      29        5835 :   return params;
      30           0 : }
      31             : 
      32        1375 : ConstantReporter::ConstantReporter(const InputParameters & parameters) : GeneralReporter(parameters)
      33             : {
      34        2741 :   declareConstantReporterValues<int>("integer");
      35        2732 :   declareConstantReporterValues<Real>("real");
      36        2732 :   declareConstantReporterValues<std::string>("string");
      37        2732 :   declareConstantReporterValues<dof_id_type>("dof_id_type");
      38        2732 :   declareConstantReporterValues<Point>("point");
      39        2732 :   declareConstantVectorReporterValues<int>("integer");
      40        2732 :   declareConstantVectorReporterValues<Real>("real");
      41        2732 :   declareConstantVectorReporterValues<std::string>("string");
      42        2732 :   declareConstantVectorReporterValues<dof_id_type>("dof_id_type");
      43        2732 :   declareConstantVectorVectorReporterValues<int>("integer");
      44        2732 :   declareConstantVectorVectorReporterValues<Real>("real");
      45        2732 :   declareConstantVectorVectorReporterValues<std::string>("string");
      46        2732 :   declareConstantVectorVectorReporterValues<dof_id_type>("dof_id_type");
      47        2732 :   declareConstantReporterValue<RealEigenVector>("eigen_vector");
      48        1366 :   declareConstantReporterValue<RealEigenMatrix>("eigen_matrix");
      49        1363 : }

Generated by: LCOV version 1.14