https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CacheSubdomainInfoThread.h
Go to the documentation of this file.
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 "MooseMesh.h"
13#include "MooseTypes.h"
14
15#include "libmesh/elem_range.h"
16
22{
23public:
26
27 void operator()(const ConstElemRange & range);
28
29 void join(const CacheSubdomainInfoThread & y);
30
31protected:
33
34 std::unordered_map<SubdomainID, std::set<SubdomainID>> _neighbor_subs;
35 std::unordered_map<SubdomainID, std::set<BoundaryID>> _sub_boundary_ids;
36 std::unordered_map<SubdomainID, std::set<BoundaryID>> _neighbor_subdomain_boundary_ids;
37
38 friend class MooseMesh;
39};
Fills subdomain neighbor and attached boundary-id caches for MooseMesh::cacheInfo().
std::unordered_map< SubdomainID, std::set< SubdomainID > > _neighbor_subs
std::unordered_map< SubdomainID, std::set< BoundaryID > > _neighbor_subdomain_boundary_ids
void join(const CacheSubdomainInfoThread &y)
std::unordered_map< SubdomainID, std::set< BoundaryID > > _sub_boundary_ids
void operator()(const ConstElemRange &range)
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95
MeshBase & mesh