OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
Decomposition_encap< Decomposition, garray > Class Template Reference

Detailed Description

template<typename Decomposition, typename garray>
class Decomposition_encap< Decomposition, garray >

Definition at line 25 of file grid_dist_amr.hpp.

Public Member Functions

 Decomposition_encap (Decomposition &dec, garray &gd_array)
 
Decompositioninternal_dec () const
 
void decompose ()
 Start decomposition.
 
void refine (size_t ts)
 Refine the decomposition, available only for ParMetis distribution, for Metis it is a null call.
 
void redecompose (size_t ts)
 Refine the decomposition, available only for ParMetis distribution, for Metis it is a null call.
 
auto getDistribution () -> decltype(dec.getDistribution())
 
Decomposition_encap< Decomposition, garray > operator= (const Decomposition_encap< Decomposition, garray > &de) const
 
bool write (std::string output) const
 

Private Attributes

Decompositiondec
 
garray & gd_array
 

Constructor & Destructor Documentation

◆ Decomposition_encap()

template<typename Decomposition , typename garray >
Decomposition_encap< Decomposition, garray >::Decomposition_encap ( Decomposition dec,
garray &  gd_array 
)
inline

Definition at line 32 of file grid_dist_amr.hpp.

Member Function Documentation

◆ decompose()

template<typename Decomposition , typename garray >
void Decomposition_encap< Decomposition, garray >::decompose ( )
inline

Start decomposition.

Definition at line 44 of file grid_dist_amr.hpp.

◆ getDistribution()

template<typename Decomposition , typename garray >
auto Decomposition_encap< Decomposition, garray >::getDistribution ( ) -> decltype(dec.getDistribution())
inline

Definition at line 87 of file grid_dist_amr.hpp.

◆ internal_dec()

template<typename Decomposition , typename garray >
Decomposition & Decomposition_encap< Decomposition, garray >::internal_dec ( ) const
inline

Definition at line 36 of file grid_dist_amr.hpp.

◆ operator=()

template<typename Decomposition , typename garray >
Decomposition_encap< Decomposition, garray > Decomposition_encap< Decomposition, garray >::operator= ( const Decomposition_encap< Decomposition, garray > &  de) const
inline

Definition at line 92 of file grid_dist_amr.hpp.

◆ redecompose()

template<typename Decomposition , typename garray >
void Decomposition_encap< Decomposition, garray >::redecompose ( size_t  ts)
inline

Refine the decomposition, available only for ParMetis distribution, for Metis it is a null call.

Parameters
tsnumber of time step from the previous load balancing

Definition at line 76 of file grid_dist_amr.hpp.

◆ refine()

template<typename Decomposition , typename garray >
void Decomposition_encap< Decomposition, garray >::refine ( size_t  ts)
inline

Refine the decomposition, available only for ParMetis distribution, for Metis it is a null call.

Parameters
tsnumber of time step from the previous load balancing

Definition at line 60 of file grid_dist_amr.hpp.

◆ write()

template<typename Decomposition , typename garray >
bool Decomposition_encap< Decomposition, garray >::write ( std::string  output) const
inline

Definition at line 100 of file grid_dist_amr.hpp.

Field Documentation

◆ dec

template<typename Decomposition , typename garray >
Decomposition& Decomposition_encap< Decomposition, garray >::dec
private

Definition at line 27 of file grid_dist_amr.hpp.

◆ gd_array

template<typename Decomposition , typename garray >
garray& Decomposition_encap< Decomposition, garray >::gd_array
private

Definition at line 28 of file grid_dist_amr.hpp.


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