openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | List of all members
kdpart::parallel_partitioner< T, S > Class Template Reference

#include <kdpart.hpp>

Collaboration diagram for kdpart::parallel_partitioner< T, S >:

Public Member Functions

void operator() (const MPI_Comm comm, const std::vector< S > &ctr, const int req_part, std::vector< T > &part_vec)
 

Detailed Description

template<class T, class S>
class kdpart::parallel_partitioner< T, S >

Definition at line 191 of file kdpart.hpp.

Member Function Documentation

◆ operator()()

template<class T, class S>
void kdpart::parallel_partitioner< T, S >::operator() ( const MPI_Comm  comm,
const std::vector< S > &  ctr,
const int  req_part,
std::vector< T > &  part_vec 
)
inline

In the case that the number of processes (thus the number of requested partitions) is not a power of two, we partition with a higher partition number and then evenly distribute the partitions onto the processes. This reduces the difference between partition sizes.

Definition at line 534 of file kdpart.hpp.


The documentation for this class was generated from the following file: