LCOV - code coverage report
Current view: top level - src/auxkernels - ProjectedMaterialPropertyNodalPatchRecoveryAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 14 85.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 "ProjectedMaterialPropertyNodalPatchRecoveryAux.h"
      11             : #include "ProjectedStatefulMaterialNodalPatchRecovery.h"
      12             : 
      13             : registerMooseObject("MooseApp", ProjectedMaterialPropertyNodalPatchRecoveryAux);
      14             : 
      15             : InputParameters
      16       16615 : ProjectedMaterialPropertyNodalPatchRecoveryAux::validParams()
      17             : {
      18       16615 :   InputParameters params = NodalPatchRecoveryAuxBase::validParams();
      19       16615 :   params.addRequiredParam<unsigned int>("component",
      20             :                                         "Serial access component for the recovered type");
      21       16615 :   return params;
      22           0 : }
      23             : 
      24        1222 : ProjectedMaterialPropertyNodalPatchRecoveryAux::ProjectedMaterialPropertyNodalPatchRecoveryAux(
      25        1222 :     const InputParameters & parameters)
      26             :   : NodalPatchRecoveryAuxBase(parameters),
      27        1222 :     _npr(getUserObject<ProjectedStatefulMaterialNodalPatchRecoveryBase>("nodal_patch_recovery_uo")),
      28        2444 :     _component(getParam<unsigned int>("component"))
      29             : {
      30             :   // Check user object block restriction for consistency
      31        1222 :   if (!isBlockSubset(_npr.blockIDs()))
      32           0 :     paramError("nodal_patch_recovery_uo",
      33             :                "Nodal patch recovery auxiliary kernel is not defined in a subset of blocks of the "
      34             :                "associated user object. Revise your input file.");
      35        1222 : }
      36             : 
      37             : Real
      38       94000 : ProjectedMaterialPropertyNodalPatchRecoveryAux::nodalPatchRecovery()
      39             : {
      40       94000 :   return _npr.nodalPatchRecovery(*_current_node, _elem_ids, _component);
      41             : }

Generated by: LCOV version 1.14