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

Generated by: LCOV version 1.14