LCOV - code coverage report
Current view: top level - src/userobjects - SideIntegralFunctorUserObject.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
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 "SideIntegralFunctorUserObject.h"
      11             : 
      12             : InputParameters
      13       85948 : SideIntegralFunctorUserObject::validParams()
      14             : {
      15       85948 :   InputParameters params = SideIntegralUserObject::validParams();
      16       85948 :   params += NonADFunctorInterface::validParams();
      17       85948 :   params.addRequiredParam<MooseFunctorName>("functor", "The functor to be integrated");
      18       85948 :   return params;
      19           0 : }
      20             : 
      21         156 : SideIntegralFunctorUserObject::SideIntegralFunctorUserObject(const InputParameters & parameters)
      22             :   : SideIntegralUserObject(parameters),
      23             :     NonADFunctorInterface(this),
      24         156 :     _functor(getFunctor<Real>("functor"))
      25             : {
      26         156 : }
      27             : 
      28             : Real
      29       25600 : SideIntegralFunctorUserObject::computeQpIntegral()
      30             : {
      31       25600 :   Moose::ElemSideQpArg elem_side_qp = {_current_elem, _current_side, _qp, _qrule, _q_point[_qp]};
      32       25600 :   return _functor(elem_side_qp, determineState());
      33             : }

Generated by: LCOV version 1.14