29 int Px = handler.GetVolumeMesher().options.partition_x;
30 int Py = handler.GetVolumeMesher().options.partition_y;
37 int nxi = std::get<0>(xyz);
38 int nyi = std::get<1>(xyz);
39 int nzi = std::get<2>(xyz);
41 return nzi*Px*Py + nyi*Px + nxi;
46 std::vector<int64_t> cell_pids(num_raw_cells, 0);
51 cell_pids[cell_id++] = GetPIDFromCentroid(raw_cell->centroid);
56 MPI_Bcast(cell_pids.data(),
57 static_cast<int>(num_raw_cells),
static chi::MPI_Info & mpi
LogStream Log(LOG_LVL level=LOG_0)
const MPI_Comm & comm
MPI communicator.
std::vector< LightWeightCell * > & GetRawCells()
size_t GetNumberOfCells() const
static std::tuple< int, int, int > GetCellXYZPartitionID(chi_mesh::Cell *cell)
static std::vector< int64_t > KBA(const chi_mesh::UnpartitionedMesh &umesh)
MeshHandler & GetCurrentHandler()