9#define sc_int64 static_cast<int64_t>
20 const unsigned int unknown_id,
21 const unsigned int component)
const
26 const size_t block_id = unknown_manager.
MapUnknown(unknown_id, component);
29 if (component >= num_unknowns)
return -1;
36 num_local_cells * block_id + cell.
local_id_;
43 const uint64_t ghost_local_id =
53 ghost_local_id * num_unknowns + block_id;
67 const unsigned int unknown_id,
68 const unsigned int component)
const
73 const size_t block_id = unknown_manager.
MapUnknown(unknown_id, component);
76 if (component >= num_unknowns)
return -1;
90 const uint64_t ghost_local_id =
95 sc_int64(num_ghost_nodes) * block_id + ghost_local_id;
98 num_unknowns *
sc_int64(ghost_local_id) + block_id;
static chi::MPI_Info & mpi
const int & location_id
Current process rank.
std::vector< uint64_t > locJ_block_size_
size_t GetNumLocalDOFs(const UnknownManager &unknown_manager) const
uint64_t local_block_address_
const UnknownManager UNITARY_UNKNOWN_MANAGER
std::vector< uint64_t > locJ_block_address_
const chi_mesh::MeshContinuum & ref_grid_
unsigned int MapUnknown(unsigned int unknown_id, unsigned int component=0) const
UnknownStorageType dof_storage_type_
unsigned int GetTotalUnknownStructureSize() const
size_t GetNumGhostDOFs(const UnknownManager &unknown_manager) const override
int64_t MapDOF(const chi_mesh::Cell &cell, unsigned int node, const UnknownManager &unknown_manager, unsigned int unknown_id, unsigned int component) const override
int64_t MapDOFLocal(const chi_mesh::Cell &cell, unsigned int node, const UnknownManager &unknown_manager, unsigned int unknown_id, unsigned int component) const override
std::map< uint64_t, uint64_t > neighbor_cell_local_ids_
uint64_t GetGhostLocalID(uint64_t cell_global_index) const
LocalCellHandler local_cells