OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
GBoxes.hpp
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
38template<unsigned int dim>
39struct GBoxes
40{
47
50 size_t k;
51
57 static bool noPointers()
58 {
59 return true;
60 }
61
62 bool operator==(const GBoxes & tmp)
63 {
64 bool is_equal = GDbox == tmp.GDbox;
65 is_equal &= Dbox == tmp.Dbox;
66 is_equal &= origin == tmp.origin;
67
68 return is_equal;
69 }
70};
71
72
73#endif /* OPENFPM_IO_SRC_UTIL_GBOXES_HPP_ */
This class represent an N-dimensional box.
Definition Box.hpp:61
This class implement the point shape in an N-dimensional space.
Definition Point.hpp:28
This structure store the Box that define the domain inside the Ghost + domain box.
Definition GBoxes.hpp:40
static bool noPointers()
Indicate that this structure has no pointers inside.
Definition GBoxes.hpp:57
Box< dim, long int > GDbox
Ghost + Domain ghost.
Definition GBoxes.hpp:42
size_t k
Definition GBoxes.hpp:50
Point< dim, long int > origin
origin of GDbox in global grid coordinates
Definition GBoxes.hpp:46
Box< dim, long int > Dbox
Domain box.
Definition GBoxes.hpp:44