From d052b0d75a49835b24419cc4938485d6dc514393 Mon Sep 17 00:00:00 2001 From: Pietro Incardona Date: Mon, 14 Dec 2015 10:49:23 -0500 Subject: [PATCH] Fixing vcluster documentation --- .gitignore | 3 + DoxygenLayout.xml | 194 ++++++++++++++++++++++++++++++++++++++++++++++ src/garbage.hpp | 47 +++++++++++ 3 files changed, 244 insertions(+) create mode 100644 DoxygenLayout.xml create mode 100644 src/garbage.hpp diff --git a/.gitignore b/.gitignore index 5c31adc..4717f54 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ numerics **/src/config aclocal.m4 **/autom4te.cache +**/doxygen +vcluster +libvcluster.a diff --git a/DoxygenLayout.xml b/DoxygenLayout.xml new file mode 100644 index 0000000..3e8f832 --- /dev/null +++ b/DoxygenLayout.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/garbage.hpp b/src/garbage.hpp new file mode 100644 index 0000000..f8c6a4d --- /dev/null +++ b/src/garbage.hpp @@ -0,0 +1,47 @@ +/* + * garbage.hpp + * + * Created on: Dec 14, 2015 + * Author: i-bird + */ + +#ifndef OPENFPM_VCLUSTER_SRC_GARBAGE_HPP_ +#define OPENFPM_VCLUSTER_SRC_GARBAGE_HPP_ + + +// openfpm::vector NN_proc; + + // Distributed processor graph +// MPI_Comm proc_comm_graph; + + /*! \brief + * + * Set the near processor of this processors + * + */ + + +/* void setLocality(openfpm::vector NN_proc) + { + // Number of sources in the graph, and sources processors + size_t sources = NN_proc.size(); + openfpm::vector src_proc; + + // number of destination in the graph + size_t dest = NN_proc.size(); + openfpm::vector dest_proc; + + // insert in sources and out sources + for (size_t i = 0; i < NN_proc.size() ; i++) + { + src_proc.add(NN_proc.get(i)); + dest_proc.add(NN_proc.get(i)); + // Copy the vector + this->NN_proc.get(i) = NN_proc.get(i); + } + + 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); + }*/ + + +#endif /* OPENFPM_VCLUSTER_SRC_GARBAGE_HPP_ */ -- GitLab