diff --git a/src/util/GBoxes.hpp b/src/util/GBoxes.hpp new file mode 100644 index 0000000000000000000000000000000000000000..b63033b3f636e81eef8522661dabca1daf7b94a0 --- /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_ */