From 3d86633ed51f6ad3988b615800c75ec3b86d44a2 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <i-bird@localhost.localdomain> Date: Fri, 8 Jan 2016 18:45:53 -0500 Subject: [PATCH] Small changes for numerics --- openfpm_numerics | 2 +- src/Decomposition/CartDecomposition.hpp | 13 +++++++++++++ src/Graph/CartesianGraphFactory.hpp | 5 ----- src/Grid/grid_dist_id.hpp | 1 - 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/openfpm_numerics b/openfpm_numerics index 90e8aaa8..a9ea8f7d 160000 --- a/openfpm_numerics +++ b/openfpm_numerics @@ -1 +1 @@ -Subproject commit 90e8aaa87e5626d888ff78918e3161ddffd5a2a0 +Subproject commit a9ea8f7d598d205d3deae6aaf9f4ac59354befaf diff --git a/src/Decomposition/CartDecomposition.hpp b/src/Decomposition/CartDecomposition.hpp index 71341b61..11d72f5b 100644 --- a/src/Decomposition/CartDecomposition.hpp +++ b/src/Decomposition/CartDecomposition.hpp @@ -1088,6 +1088,19 @@ p1[0]<-----+ +----> p2[0] return true; } + /*! \brief Get the Virtual Cluster machine + * + * \return the Virtual cluster machine + * + */ + Vcluster & getVC() const + { +#ifdef SE_CLASS2 + check_valid(this,8); +#endif + return v_cl; + } + /*! \brief function to check the consistency of the information of the decomposition * * \return false if is inconsistent diff --git a/src/Graph/CartesianGraphFactory.hpp b/src/Graph/CartesianGraphFactory.hpp index 88f3f9b2..2f0db9f2 100644 --- a/src/Graph/CartesianGraphFactory.hpp +++ b/src/Graph/CartesianGraphFactory.hpp @@ -195,11 +195,6 @@ public: //! Construct cartesian graph static Graph construct(const size_t ( & sz)[dim], Box<dim,T> dom, const size_t(& bc)[dim]) { - size_t bc[dim]; - - for (size_t i = 0 ; i < dim ; i++) - bc[i] = NON_PERIODIC; - // Calculate the size of the hyper-cubes on each dimension T szd[dim]; diff --git a/src/Grid/grid_dist_id.hpp b/src/Grid/grid_dist_id.hpp index c958f202..ccd8eec4 100644 --- a/src/Grid/grid_dist_id.hpp +++ b/src/Grid/grid_dist_id.hpp @@ -925,7 +925,6 @@ public: * \return the Virtual cluster machine * */ - Vcluster & getVC() { #ifdef SE_CLASS2 -- GitLab