LCOV - code coverage report
Current view: top level - src/userobjects - NodalPatchRecoveryVariable.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: fef103 Lines: 10 13 76.9 %
Date: 2025-09-03 20:01:23 Functions: 3 4 75.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 "NodalPatchRecoveryVariable.h"
      11             : 
      12             : registerMooseObject("MooseApp", NodalPatchRecoveryVariable);
      13             : 
      14             : InputParameters
      15       14975 : NodalPatchRecoveryVariable::validParams()
      16             : {
      17       14975 :   InputParameters params = NodalPatchRecoveryBase::validParams();
      18       59900 :   params.addRequiredCoupledVar(
      19             :       "variable", "The variable whose value will be fitted over the patch of elements.");
      20             : 
      21       14975 :   params.addClassDescription("Performs patch recovery using a coupled variable.");
      22             : 
      23       14975 :   return params;
      24           0 : }
      25             : 
      26         366 : NodalPatchRecoveryVariable::NodalPatchRecoveryVariable(const InputParameters & params)
      27        1464 :   : NodalPatchRecoveryBase(params), _v(coupledValue("variable")), _name(coupledName("variable"))
      28             : {
      29         366 : }
      30             : 
      31             : Real
      32      109455 : NodalPatchRecoveryVariable::computeValue()
      33             : {
      34      109455 :   return _v[_qp];
      35             : }
      36             : 
      37             : const VariableName &
      38           0 : NodalPatchRecoveryVariable::variableName() const
      39             : {
      40           0 :   return _name;
      41             : }

Generated by: LCOV version 1.14