www.mooseframework.org
UpdateErrorVectorsThread.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
19 class UpdateErrorVectorsThread : public ThreadedElementLoop<ConstElemRange>
20 {
21 public:
23  FEProblemBase & fe_problem,
24  const std::map<std::string, std::unique_ptr<ErrorVector>> & indicator_field_to_error_vector);
25 
26  // Splitting Constructor
28 
29  virtual void onElement(const Elem * elem) override;
30 
31  void join(const UpdateErrorVectorsThread & /*y*/);
32 
33 protected:
34  const std::map<std::string, std::unique_ptr<ErrorVector>> & _indicator_field_to_error_vector;
36  unsigned int _system_number;
39 
40  std::map<unsigned int, ErrorVector *> _indicator_field_number_to_error_vector;
41 };
Base class for assembly-like calculations.
NumericVector< Number > & _solution
void join(const UpdateErrorVectorsThread &)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual void onElement(const Elem *elem) override
Assembly of the element (not including surface assembly)
UpdateErrorVectorsThread(FEProblemBase &fe_problem, const std::map< std::string, std::unique_ptr< ErrorVector >> &indicator_field_to_error_vector)
tbb::split split
Takes care of everything related to mesh adaptivity.
Definition: Adaptivity.h:49
const std::map< std::string, std::unique_ptr< ErrorVector > > & _indicator_field_to_error_vector
std::map< unsigned int, ErrorVector * > _indicator_field_number_to_error_vector
A system that holds auxiliary variables.