OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
garbage.hpp
1/*
2 * garbage.hpp
3 *
4 * Created on: Dec 14, 2015
5 * Author: i-bird
6 */
7
8#ifndef OPENFPM_VCLUSTER_SRC_GARBAGE_HPP_
9#define OPENFPM_VCLUSTER_SRC_GARBAGE_HPP_
10
11
12// openfpm::vector<size_t> NN_proc;
13
14 // Distributed processor graph
15// MPI_Comm proc_comm_graph;
16
24/* void setLocality(openfpm::vector<size_t> NN_proc)
25 {
26 // Number of sources in the graph, and sources processors
27 size_t sources = NN_proc.size();
28 openfpm::vector<int> src_proc;
29
30 // number of destination in the graph
31 size_t dest = NN_proc.size();
32 openfpm::vector<int> dest_proc;
33
34 // insert in sources and out sources
35 for (size_t i = 0; i < NN_proc.size() ; i++)
36 {
37 src_proc.add(NN_proc.get(i));
38 dest_proc.add(NN_proc.get(i));
39 // Copy the vector
40 this->NN_proc.get(i) = NN_proc.get(i);
41 }
42
43 MPI_Dist_graph_create_adjacent(MPI_COMM_WORLD,sources,&src_proc.get(0),(const int *)MPI_UNWEIGHTED,dest,&dest_proc.get(0),(const int *)MPI_UNWEIGHTED,MPI_INFO_NULL,true,&proc_comm_graph);
44 }*/
45
46
47#endif /* OPENFPM_VCLUSTER_SRC_GARBAGE_HPP_ */