LCOV - code coverage report
Current view: top level - include/loops - FlagElementsThread.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             : 
      14             : #include "libmesh/elem_range.h"
      15             : 
      16             : class AuxiliarySystem;
      17             : class Adaptivity;
      18             : class DisplacedProblem;
      19             : 
      20             : class FlagElementsThread : public ThreadedElementLoop<ConstElemRange>
      21             : {
      22             : public:
      23             :   FlagElementsThread(FEProblemBase & fe_problem,
      24             :                      std::vector<Number> & serialized_solution,
      25             :                      unsigned int max_h_level,
      26             :                      const std::string & marker_name,
      27             :                      bool is_serialized_solution);
      28             : 
      29             :   // Splitting Constructor
      30             :   FlagElementsThread(FlagElementsThread & x, Threads::split split);
      31             : 
      32             :   virtual void onElement(const Elem * elem) override;
      33             : 
      34             :   // Must override this in order to avoid calling the base class method which reads the refinement
      35             :   // flags, causing read-write data races
      36     6287958 :   bool shouldComputeInternalSide(const Elem &, const Elem &) const override { return false; }
      37             : 
      38             :   void join(const FlagElementsThread & /*y*/);
      39             : 
      40             : protected:
      41             :   FEProblemBase & _fe_problem;
      42             :   std::shared_ptr<DisplacedProblem> _displaced_problem;
      43             :   AuxiliarySystem & _aux_sys;
      44             :   unsigned int _system_number;
      45             :   Adaptivity & _adaptivity;
      46             :   MooseVariableFEBase & _field_var;
      47             :   unsigned int _field_var_number;
      48             :   std::vector<Number> & _serialized_solution;
      49             :   unsigned int _max_h_level;
      50             :   bool _is_serialized_solution;
      51             : };

Generated by: LCOV version 1.14