LCOV - code coverage report
Current view: top level - include/base - MaxVarNDofsPerElem.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 1 1 100.0 %
Date: 2025-07-17 01:28:37 Functions: 1 1 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 "ThreadedElementLoop.h"
      13             : // libMesh includes
      14             : #include "libmesh/elem_range.h"
      15             : 
      16             : class SolverSystem;
      17             : 
      18             : class MaxVarNDofsPerElem : public ThreadedElementLoop<ConstElemRange>
      19             : {
      20             : public:
      21             :   MaxVarNDofsPerElem(FEProblemBase & feproblem, SolverSystem & sys);
      22             : 
      23             :   // Splitting Constructor
      24             :   MaxVarNDofsPerElem(MaxVarNDofsPerElem & x, Threads::split split);
      25             : 
      26             :   virtual ~MaxVarNDofsPerElem();
      27             : 
      28             :   virtual void onElement(const Elem * elem);
      29             : 
      30             :   void join(const MaxVarNDofsPerElem &);
      31             : 
      32       55737 :   dof_id_type max() { return _max; }
      33             : 
      34             : protected:
      35             :   /// The nonlinear system
      36             :   SolverSystem & _system;
      37             : 
      38             :   /// Maximum number of dofs for any one variable on any one element
      39             :   size_t _max;
      40             : 
      41             :   /// DOF map
      42             :   const DofMap & _dof_map;
      43             : 
      44             :   /// Reusable storage
      45             :   std::vector<dof_id_type> _dof_indices;
      46             : };

Generated by: LCOV version 1.14