1/*
2 * Gboxes.hpp
3 *
4 * Created on: May 2, 2017
5 * Author: i-bird
6 */
7
8#ifndef OPENFPM_IO_SRC_UTIL_GBOXES_HPP_
9#define OPENFPM_IO_SRC_UTIL_GBOXES_HPP_
10
11
12/*! \brief This structure store the Box that define the domain inside the Ghost + domain box
13 *
14 \verbatim
15
16 (Ghost + Domain)
17 +------------------+
18 | |
19 | +------------+ <---------- (Domain)
20 | | | |
21 | | Domain | |
22 | | Box | |
23 | | | |
24 | | | |
25 | +------------+ |
26 | |
27 +------------------+
28(0,0) local coordinate ---> ( x, y )
29
30 \endverbatim
31
32 *
33 * * Domain
34 *
35 * \tparam dim dimensionality
36 *
37 */
38template<unsigned int dim>
39struct GBoxes
40{
41 //! Ghost + Domain ghost
42 Box<dim,long int> GDbox;
43 //! Domain box
44 Box<dim,long int> Dbox;
45 //! origin of GDbox in global grid coordinates
46 Point<dim,long int> origin;
47
48 //! In case the grid is not defined everywhere but is defined by a set of boxes
49 //! indicate from which box it come from
50 size_t k;
51
52 /*! \brief Indicate that this structure has no pointers inside
53 *
54 * \return true
55 *
56 */
57 static bool noPointers()
58 {
59 return true;
60 }
61};
62
63
64#endif /* OPENFPM_IO_SRC_UTIL_GBOXES_HPP_ */
65