OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
Box_loc_sub< dim, T > Struct Template Reference

for each sub-domain box sub contain the real the sub-domain id More...

Detailed Description

template<unsigned int dim, typename T>
struct Box_loc_sub< dim, T >

for each sub-domain box sub contain the real the sub-domain id

When we apply boundary conditions real sub-domains are copied along the border sub, contain the id of the real sub_domain

Template Parameters
dimDimensionality of the box
Tin witch space this box live

Definition at line 45 of file common.hpp.

#include <common.hpp>

Public Member Functions

 Box_loc_sub ()
 Constructor.
 
 Box_loc_sub (const Box< dim, T > &bx, size_t sub, const comb< dim > &cmb)
 Constructor from box, domain id and sector where it live.
 
Box_loc_sub operator= (const Box< dim, T > &box)
 Set the sub-domain box coordinates.
 

Data Fields

Box< dim, T > bx
 Box defining the sub-domain (copied)
 
size_t sub
 The id of the real domain.
 
comb< dim > cmb
 in witch sector this sub-domain live
 

Constructor & Destructor Documentation

◆ Box_loc_sub() [1/2]

template<unsigned int dim, typename T >
Box_loc_sub< dim, T >::Box_loc_sub ( )
inline

Constructor.

Definition at line 57 of file common.hpp.

◆ Box_loc_sub() [2/2]

template<unsigned int dim, typename T >
Box_loc_sub< dim, T >::Box_loc_sub ( const Box< dim, T > &  bx,
size_t  sub,
const comb< dim > &  cmb 
)
inline

Constructor from box, domain id and sector where it live.

Definition at line 64 of file common.hpp.

Member Function Documentation

◆ operator=()

template<unsigned int dim, typename T >
Box_loc_sub Box_loc_sub< dim, T >::operator= ( const Box< dim, T > &  box)
inline

Set the sub-domain box coordinates.

Definition at line 69 of file common.hpp.

Field Documentation

◆ bx

template<unsigned int dim, typename T >
Box<dim,T> Box_loc_sub< dim, T >::bx

Box defining the sub-domain (copied)

Definition at line 48 of file common.hpp.

◆ cmb

template<unsigned int dim, typename T >
comb<dim> Box_loc_sub< dim, T >::cmb

in witch sector this sub-domain live

Definition at line 54 of file common.hpp.

◆ sub

template<unsigned int dim, typename T >
size_t Box_loc_sub< dim, T >::sub

The id of the real domain.

Definition at line 51 of file common.hpp.


The documentation for this struct was generated from the following file: