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

Generated by: LCOV version 1.14