17 const auto& qoi_designation = qoi_pair.first;
18 auto& qoi_cell_subscription = qoi_pair.second;
20 for (
const auto& cell :
grid_ptr_->local_cells)
21 if (qoi_designation.logical_volume->Inside(cell.centroid_))
22 qoi_cell_subscription.push_back(cell.local_id_);
24 size_t num_local_subs = qoi_cell_subscription.size();
25 size_t num_globl_subs = 0;
27 MPI_Allreduce(&num_local_subs,
29 1, MPI_UNSIGNED_LONG_LONG,
33 Chi::log.
Log() <<
"LBAdjointSolver: Number of cells subscribed to "
34 << qoi_designation.name <<
" = "
static chi::MPI_Info & mpi
LogStream Log(LOG_LVL level=LOG_0)
std::vector< RespFuncAndSubs > response_functions_
chi_mesh::MeshContinuumPtr grid_ptr_