LCOV - code coverage report
Current view: top level - src/reporters - NodalVariableStatistics.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 "NodalVariableStatistics.h"
      11             : 
      12             : registerMooseObject("MooseApp", NodalVariableStatistics);
      13             : 
      14             : InputParameters
      15       14290 : NodalVariableStatistics::validParams()
      16             : {
      17       14290 :   InputParameters params = NodalStatistics::validParams();
      18             : 
      19       14290 :   params.addRequiredCoupledVar("coupled_var", "Coupled variable whose value is used.");
      20             : 
      21       14290 :   params.addClassDescription("Nodal reporter to get statistics for a coupled variable. This can "
      22             :                              "be transfered to other apps.");
      23       14290 :   return params;
      24           0 : }
      25             : 
      26          13 : NodalVariableStatistics::NodalVariableStatistics(const InputParameters & parameters)
      27          13 :   : NodalStatistics(parameters), _v(coupledValue("coupled_var"))
      28             : {
      29          13 : }
      30             : 
      31             : Real
      32         968 : NodalVariableStatistics::computeValue()
      33             : {
      34         968 :   return _v[_qp];
      35             : }

Generated by: LCOV version 1.14