#include <chi_meshcontinuum_globalcellhandler.h>
|
| GlobalCellHandler (std::vector< std::unique_ptr< chi_mesh::Cell > > &in_native_cells, std::vector< std::unique_ptr< chi_mesh::Cell > > &in_foreign_cells, std::map< uint64_t, uint64_t > &in_global_cell_id_to_native_id_map, std::map< uint64_t, uint64_t > &in_global_cell_id_to_foreign_id_map) |
|
Handles all global index queries.
Definition at line 12 of file chi_meshcontinuum_globalcellhandler.h.
◆ GlobalCellHandler()
chi_mesh::GlobalCellHandler::GlobalCellHandler |
( |
std::vector< std::unique_ptr< chi_mesh::Cell > > & |
in_native_cells, |
|
|
std::vector< std::unique_ptr< chi_mesh::Cell > > & |
in_foreign_cells, |
|
|
std::map< uint64_t, uint64_t > & |
in_global_cell_id_to_native_id_map, |
|
|
std::map< uint64_t, uint64_t > & |
in_global_cell_id_to_foreign_id_map |
|
) |
| |
|
inlineexplicitprivate |
◆ GetGhostGlobalIDs()
std::vector< uint64_t > chi_mesh::GlobalCellHandler::GetGhostGlobalIDs |
( |
| ) |
const |
Returns the cell global ids of all ghost cells. These are cells that neighbors to this partition's cells but are on a different partition.
Definition at line 104 of file chi_meshcontinuum_globalcellhandler.cc.
◆ GetGhostLocalID()
uint64_t chi_mesh::GlobalCellHandler::GetGhostLocalID |
( |
uint64_t |
cell_global_index | ) |
const |
Returns the local storage address of a ghost cell. If the ghost is not truly a ghost then -1 is returned, but is wasteful and therefore the user of this function should implement code to prevent it.
Definition at line 121 of file chi_meshcontinuum_globalcellhandler.cc.
◆ GetNumGhosts()
size_t chi_mesh::GlobalCellHandler::GetNumGhosts |
( |
| ) |
const |
|
inline |
◆ operator[]() [1/2]
chi_mesh::Cell & chi_mesh::GlobalCellHandler::operator[] |
( |
uint64_t |
cell_global_index | ) |
|
◆ operator[]() [2/2]
const chi_mesh::Cell & chi_mesh::GlobalCellHandler::operator[] |
( |
uint64_t |
cell_global_index | ) |
const |
◆ push_back()
void chi_mesh::GlobalCellHandler::push_back |
( |
std::unique_ptr< chi_mesh::Cell > |
new_cell | ) |
|
◆ MeshContinuum
◆ ghost_cells_ref_
std::vector<std::unique_ptr<chi_mesh::Cell> >& chi_mesh::GlobalCellHandler::ghost_cells_ref_ |
|
private |
◆ global_cell_id_to_foreign_id_map
std::map<uint64_t,uint64_t>& chi_mesh::GlobalCellHandler::global_cell_id_to_foreign_id_map |
|
private |
◆ global_cell_id_to_native_id_map
std::map<uint64_t,uint64_t>& chi_mesh::GlobalCellHandler::global_cell_id_to_native_id_map |
|
private |
◆ local_cells_ref_
std::vector<std::unique_ptr<chi_mesh::Cell> >& chi_mesh::GlobalCellHandler::local_cells_ref_ |
|
private |
The documentation for this class was generated from the following files: