Function opensn::BatchCommunicateLocationDependencies

Function Documentation

std::vector<std::vector<std::vector<int>>> opensn::BatchCommunicateLocationDependencies(const std::vector<std::vector<int>> &local_deps)

Batched variant of CommunicateLocationDependencies.

Gathers dependencies for all N SPDS in 2 MPI collectives instead of 2*N. Returns global_deps[s][rank] for each SPDS s and MPI rank.