core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
gather_by_global_id.hpp File Reference
#include <climits>
#include <cstddef>
#include <stdexcept>
#include <type_traits>
#include <vector>
#include "peclet/core/common/mpi.hpp"

Go to the source code of this file.

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::decomp
 

Functions

template<class T >
void peclet::core::decomp::gatherByGlobalId (const std::vector< long long > &ids, const std::vector< T > &vals, long long nGlobal, std::vector< T > &out, MPI_Comm comm)
 ids[i] is the global id of vals[i] on this rank.