LCOV - code coverage report
Current view: top level - include/auxkernels - FeatureFloodCountAux.h (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 1 1 100.0 %
Date: 2025-09-04 07:55:36 Functions: 2 2 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             : #pragma once
      11             : 
      12             : #include "AuxKernel.h"
      13             : #include "FeatureFloodCount.h"
      14             : 
      15             : // Forward Declarations
      16             : class GrainTrackerInterface;
      17             : 
      18             : /**
      19             :  * Function auxiliary value
      20             :  */
      21             : class FeatureFloodCountAux : public AuxKernel
      22             : {
      23             : public:
      24             :   /**
      25             :    * Factory constructor, takes parameters so that all derived classes can be built using the same
      26             :    * constructor.
      27             :    */
      28             :   static InputParameters validParams();
      29             : 
      30             :   FeatureFloodCountAux(const InputParameters & parameters);
      31             : 
      32       10854 :   virtual ~FeatureFloodCountAux() {}
      33             : 
      34             : protected:
      35             :   using FieldType = FeatureFloodCount::FieldType;
      36             : 
      37             :   virtual Real computeValue() override;
      38             :   virtual void precalculateValue() override;
      39             : 
      40             :   /// Function being used to compute the value of this kernel
      41             :   const FeatureFloodCount & _flood_counter;
      42             : 
      43             :   const std::size_t _var_idx;
      44             :   const FieldType _field_type;
      45             :   bool _var_coloring;
      46             : 
      47             :   /// precalculated element value
      48             :   Real _value;
      49             : };

Generated by: LCOV version 1.14