From 4c42c116b7814d92b0656fd54fee895733272ee1 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Mon, 29 Jun 2020 14:32:04 +0200
Subject: [PATCH] Latest modules

---
 openfpm_numerics                 |  2 +-
 src/Grid/staggered_dist_grid.hpp | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/openfpm_numerics b/openfpm_numerics
index 515ec9bf8..d0f3b7819 160000
--- a/openfpm_numerics
+++ b/openfpm_numerics
@@ -1 +1 @@
-Subproject commit 515ec9bf8f1b482ad0b3d2c45ed9c36673f15a8e
+Subproject commit d0f3b7819273efc599f5667de5c7c73fb9f5be3c
diff --git a/src/Grid/staggered_dist_grid.hpp b/src/Grid/staggered_dist_grid.hpp
index 7c0a7e875..c336da0b7 100644
--- a/src/Grid/staggered_dist_grid.hpp
+++ b/src/Grid/staggered_dist_grid.hpp
@@ -104,6 +104,23 @@ public:
 	:grid_dist_id<dim,St,T,Decomposition,Memory,device_grid>(g_sz,domain,ghost)
 	{}
 
+
+    /*! It construct a grid of a specified size, defined on a specified Box space, having a specified ghost size and periodicity
+     *
+     * \param g_sz grid size on each dimension
+     * \param domain Box that contain the grid
+     * \param g Ghost part of the domain (given in grid units)
+     * \param p periodicity
+     *
+     * \warning In very rare case the ghost part can be one point bigger than the one specified
+     *
+     */
+	staggered_grid_dist(const size_t (& g_sz)[dim],const Box<dim,St> & domain,
+			     const Ghost<dim,long int> & g, const periodicity<dim> & p)
+	:grid_dist_id<dim,St,T,Decomposition,Memory,device_grid>(g_sz,domain,g,p)
+	{
+	}
+
 	/*! \brief set the staggered positions of the properties
 	 *
 	 * \tparam property p
-- 
GitLab