LCOV - code coverage report
Current view: top level - src/auxkernels - NodalPatchRecoveryAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 9 10 90.0 %
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 "NodalPatchRecoveryAux.h"
      11             : #include "NodalPatchRecoveryBase.h"
      12             : 
      13             : registerMooseObject("MooseApp", NodalPatchRecoveryAux);
      14             : 
      15             : InputParameters
      16       14290 : NodalPatchRecoveryAux::validParams()
      17             : {
      18       14290 :   InputParameters params = NodalPatchRecoveryAuxBase::validParams();
      19       14290 :   return params;
      20             : }
      21             : 
      22          13 : NodalPatchRecoveryAux::NodalPatchRecoveryAux(const InputParameters & parameters)
      23             :   : NodalPatchRecoveryAuxBase(parameters),
      24          13 :     _npr(getUserObject<NodalPatchRecoveryBase>("nodal_patch_recovery_uo"))
      25             : {
      26             :   // Check user object block restriction for consistency
      27          13 :   if (!isBlockSubset(_npr.blockIDs()))
      28           0 :     paramError("nodal_patch_recovery_uo",
      29             :                "Nodal patch recovery auxiliary kernel is not defined in a subset of blocks of the "
      30             :                "associated user object. Revise your input file.");
      31          13 : }
      32             : Real
      33        4840 : NodalPatchRecoveryAux::nodalPatchRecovery()
      34             : {
      35        4840 :   return _npr.nodalPatchRecovery(*_current_node, _elem_ids);
      36             : }

Generated by: LCOV version 1.14