source: XIOS/trunk/src/policy.hpp @ 829

Last change on this file since 829 was 721, checked in by mhnguyen, 8 years ago

Templated version of distributed hashed table

+) Implement DHT in more generic way to work with different type of information
+) Some old codes of DHT are kept to be a reference (they will be deleted soon)

Test
+) On local, mode attached, 8 processes
+) test_remap passes and result is correct

File size: 580 bytes
Line 
1/*!
2   \file policy.hpp
3   \author Ha NGUYEN
4   \since 06 Oct 2015
5   \date 06 Oct 2015
6
7   \brief Some useful policies for templated classes
8 */
9
10#ifndef __XIOS_POLICY_HPP__
11#define __XIOS_POLICY_HPP__
12
13#include <vector>
14#include "mpi.hpp"
15
16namespace xios
17{
18class DivideCommByTwo
19{
20protected:
21  void computeMPICommLevel(const MPI_Comm& mpiCommRoot, int levels);
22
23protected:
24  std::vector<MPI_Comm> commLevel_;
25private:
26  // Divide MPI communicator on each level recursively
27  void divideMPICommLevel(const MPI_Comm& mpiCommLevel, int level);
28};
29
30}
31
32#endif // __XIOS_POLICY_HPP__
Note: See TracBrowser for help on using the repository browser.