Skip to content
Snippets Groups Projects
Commit 084d71f7 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

May be fix compilation on 4.8.5

parent 423170a7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment