LCOV - code coverage report
Current view: top level - src/auxkernels - TagVectorAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 13 92.3 %
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 "TagVectorAux.h"
      11             : 
      12             : registerMooseObject("MooseApp", TagVectorAux);
      13             : 
      14             : InputParameters
      15       15167 : TagVectorAux::validParams()
      16             : {
      17       15167 :   InputParameters params = TagAuxBase<AuxKernel>::validParams();
      18       15167 :   params.addRequiredParam<TagName>("vector_tag", "Tag Name this Aux works on");
      19       15167 :   params.addClassDescription("Couple a tag vector, and return its nodal value");
      20       15167 :   return params;
      21           0 : }
      22             : 
      23         466 : TagVectorAux::TagVectorAux(const InputParameters & parameters)
      24             :   : TagAuxBase<AuxKernel>(parameters),
      25         466 :     _v(coupledVectorTagValue("v", "vector_tag")),
      26         932 :     _v_var(*getFieldVar("v", 0))
      27             : {
      28         466 :   checkCoupledVariable(&_v_var, &_var);
      29         462 : }
      30             : 
      31             : Real
      32       65576 : TagVectorAux::computeValue()
      33             : {
      34       65576 :   return _scaled ? _v[_qp] : _v[_qp] / _v_var.scalingFactor();
      35             : }

Generated by: LCOV version 1.14