Interface Documentation
Version: invalid
index_coloring.hh
Go to the documentation of this file.
1 /*
2  @@@@@@@@ @@ @@@@@@ @@@@@@@@ @@
3  /@@///// /@@ @@////@@ @@////// /@@
4  /@@ /@@ @@@@@ @@ // /@@ /@@
5  /@@@@@@@ /@@ @@///@@/@@ /@@@@@@@@@/@@
6  /@@//// /@@/@@@@@@@/@@ ////////@@/@@
7  /@@ /@@/@@//// //@@ @@ /@@/@@
8  /@@ @@@//@@@@@@ //@@@@@@ @@@@@@@@ /@@
9  // /// ////// ////// //////// //
10 
11  Copyright (c) 2016, Los Alamos National Security, LLC
12  All rights reserved.
13  */
14 #pragma once
15 
18 #include <set>
19 #include <unordered_map>
20 
21 namespace flecsi {
22 namespace topo {
23 namespace unstructured_impl {
24 
29  // using entity_info = topo::unstructured_impl::entity_info;
30 
31  //------------------------------------------------------------------------//
32  // Data members.
33  //------------------------------------------------------------------------//
34 
35  // Set of mesh ids of the primary coloring
36  std::set<size_t> primary;
37 
38  // Set of entity_info type of the exclusive coloring
39  std::set<entity_info> exclusive;
40 
41  // Set of entity_info type of the shared coloring
42  std::set<entity_info> shared;
43 
44  // Set of entity_info type of the ghost coloring
45  std::set<entity_info> ghost;
46 
47  // Rank id to number of entities
48  std::unordered_map<size_t, size_t> entities_per_rank;
49 
58  bool operator==(const index_coloring & ip) const {
59  return (this->primary == ip.primary && this->exclusive == ip.exclusive &&
60  this->shared == ip.shared && this->ghost == ip.ghost);
61  } // operator ==
62 
63 }; // struct index_coloring
64 
65 } // namespace unstructured_impl
66 } // namespace topo
67 } // namespace flecsi
bool operator==(const index_coloring &ip) const
Definition: index_coloring.hh:58
Definition: index_coloring.hh:28
Definition: control.hh:31