From 084d71f7b0434f99b8decea83cb7a04a2f3c5ea9 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Tue, 6 Nov 2018 20:52:04 +0100 Subject: [PATCH] May be fix compilation on 4.8.5 --- .../Distribution/MetisDistribution.hpp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Decomposition/Distribution/MetisDistribution.hpp b/src/Decomposition/Distribution/MetisDistribution.hpp index caa5efd0..f0a022b7 100644 --- a/src/Decomposition/Distribution/MetisDistribution.hpp +++ b/src/Decomposition/Distribution/MetisDistribution.hpp @@ -13,6 +13,20 @@ #define METIS_DISTRIBUTION_ERROR_OBJECT std::runtime_error("Metis runtime error"); +/*! \brief sub-domain list and weight + * + */ +struct met_sub_w +{ + //! sub-domain id + size_t id; + + //! sub-domain weight / assignment (it depend in which context is used) + size_t w; + + static bool noPointers() {return true;} +}; + /*! \brief Class that distribute sub-sub-domains across processors using Metis Library * * Given a graph and setting Computational cost, Communication cost (on the edge) and @@ -47,20 +61,6 @@ class MetisDistribution //! Metis decomposer utility Metis<Graph_CSR<nm_v, nm_e>> metis_graph; - /*! \brief sub-domain list and weight - * - */ - struct met_sub_w - { - //! sub-domain id - size_t id; - - //! sub-domain weight / assignment (it depend in which context is used) - size_t w; - - static bool noPointers() {return true;} - }; - //! unordered map that map global sub-sub-domain to owned_cost_sub id std::unordered_map<size_t,size_t> owner_scs; -- GitLab