From 095d0bdbc81f48e07e8e74b0fc63b940c5e53c60 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Wed, 12 Nov 2014 19:21:11 +0100 Subject: [PATCH] Parallel data structure --- src/grid_dist.hpp | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/grid_dist.hpp b/src/grid_dist.hpp index af4d369b..4d57013e 100644 --- a/src/grid_dist.hpp +++ b/src/grid_dist.hpp @@ -150,14 +150,40 @@ class grid_dist //! Space Decomposition Decomposition dec; +public: + //! constructor - grid_dist(Decomposition dec) + grid_dist() + :loc_grid(NULL) + { + } + + /*! \brief get the object that store the decomposition information + * + * get the object that store the decomposition information + * + * \return the decomposition object + * + */ + + Decomposition & getDecomposition() + { + return dec; + } + + /*! \brief Decompose the domain + * + * Decompose the domain + * + */ + + void Decompose() { // ! Create an hyper-cube approximation. // ! In order to work on grid_dist the decomposition // ! has to be a set of hyper-cube - dec.HyperCube(); + dec.hyperCube(); // Get the number of local grid needed -- GitLab