Commit dca5c69c authored by incardon's avatar incardon

Refactoring CartDecomposition in progress

parent 75121b61
This diff is collapsed.
......@@ -92,4 +92,42 @@ struct lBox_dom
openfpm::vector_std< Box_sub_k<dim,T>> ibx;
};
template<unsigned int dim, typename T>
struct Box_proc
{
// Intersection between the local sub-domain enlarged by the ghost and the contiguous processor
// sub-domains (External ghost)
openfpm::vector<::Box<dim,T>> bx;
// Intersection between the contiguous processor sub-domain enlarged by the ghost with the
// local sub-domain (Internal ghost)
openfpm::vector<::Box<dim,T>> nbx;
// processor
size_t proc;
};
template<unsigned int dim, typename T>
struct Box_dom
{
// Intersection between the local sub-domain enlarged by the ghost and the contiguous processor
// sub-domains (External ghost)
openfpm::vector_std< Box_sub<dim,T> > ebx;
// Intersection between the contiguous processor sub-domain enlarged by the ghost with the
// local sub-domain (Internal ghost)
openfpm::vector_std< Box_sub<dim,T> > ibx;
};
template<unsigned int dim, typename T>
struct N_box
{
// id of the processor in the nn_processor list (local processor id)
size_t id;
// Near processor sub-domains
typename openfpm::vector<::Box<dim,T>> bx;
};
#endif /* SRC_DECOMPOSITION_COMMON_HPP_ */
......@@ -15,11 +15,13 @@
#include "VTKWriter.hpp"
/*! \brief structure that store and compute the internal and external local ghost box
*
* \tparam dim is the dimensionality of the physical domain we are going to decompose.
* \tparam T type of the space we decompose, Real, Integer, Complex ...
*
* \see CartDecomposition
*
*/
template<unsigned int dim, typename T>
class ie_loc_ghost
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment