From be06d3c9b7a556de36004851bafa1041f29cc31c Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Wed, 7 Jun 2017 17:59:36 +0200 Subject: [PATCH] Adding missing files --- src/util/GBoxes.hpp | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/util/GBoxes.hpp diff --git a/src/util/GBoxes.hpp b/src/util/GBoxes.hpp new file mode 100644 index 0000000..b63033b --- /dev/null +++ b/src/util/GBoxes.hpp @@ -0,0 +1,50 @@ +/* + * Gboxes.hpp + * + * Created on: May 2, 2017 + * Author: i-bird + */ + +#ifndef OPENFPM_IO_SRC_UTIL_GBOXES_HPP_ +#define OPENFPM_IO_SRC_UTIL_GBOXES_HPP_ + + +/*! \brief This structure store the Box that define the domain inside the Ghost + domain box + * + \verbatim + + (Ghost + Domain) + +------------------+ + | | + | +------------+ <---------- (Domain) + | | | | + | | Domain | | + | | Box | | + | | | | + | | | | + | +------------+ | + | | + +------------------+ +(0,0) local coordinate ---> ( x, y ) + + \endverbatim + + * + * * Domain + * + * \tparam dim dimensionality + * + */ +template<unsigned int dim> +struct GBoxes +{ + //! Ghost + Domain ghost + Box<dim,long int> GDbox; + //! Domain box + Box<dim,long int> Dbox; + //! origin of GDbox in global grid coordinates + Point<dim,long int> origin; +}; + + +#endif /* OPENFPM_IO_SRC_UTIL_GBOXES_HPP_ */ -- GitLab