dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::LoadBalancer< GridType > Class Template Reference

This class manages the adaptation process. If the method adapt is called, then the grid is adapted and also all the data belonging to the given dof manager will be rearranged for data set where it is necessary to keep the data. More...

#include <dune/fem/space/common/loadbalancer.hh>

Inheritance diagram for Dune::Fem::LoadBalancer< GridType >:
Inheritance graph

Public Member Functions

virtual ~LoadBalancer ()
 destructor
 
void communicate () const
 
bool loadBalance ()
 do load balance
 
virtual double loadBalanceTime () const
 time that last load balance cycle took
 
template<class DiscreteFunctionType >
void addToLoadBalancer (DiscreteFunctionType &df)
 add discrete function to data inliner/xtractor list
 
template<class DiscreteFunctionType >
void addDiscreteFunction (DiscreteFunctionType &df)
 add discrete function to data inliner/xtractor list
 
template<class DiscreteFunctionType , class ContainsCheck >
void addDiscreteFunction (DiscreteFunctionType &df, const ContainsCheck &containsCheck)
 add discrete function to data inliner/xtractor list
 

Protected Member Functions

template<class RestrictProlongOperator >
 LoadBalancer (GridType &grid, RestrictProlongOperator &rpOp)
 constructor of LoadBalancer
 
 LoadBalancer (GridType &grid)
 

Protected Attributes

GridType & grid_
 corresponding grid
 
DofManagerTypedm_
 DofManager corresponding to grid.
 
std::vector< LocalDataCollectorPairType > localList_
 
std::vector< DataCollectorPairType > collList_
 
std::set< const IsDiscreteFunction * > listOfFcts_
 
CommunicationManagerList commList_
 
double balanceTime_
 

Detailed Description

template<class GridType>
class Dune::Fem::LoadBalancer< GridType >

This class manages the adaptation process. If the method adapt is called, then the grid is adapted and also all the data belonging to the given dof manager will be rearranged for data set where it is necessary to keep the data.

Constructor & Destructor Documentation

◆ LoadBalancer() [1/2]

template<class GridType >
template<class RestrictProlongOperator >
Dune::Fem::LoadBalancer< GridType >::LoadBalancer ( GridType &  grid,
RestrictProlongOperator &  rpOp 
)
inlineprotected

constructor of LoadBalancer

◆ LoadBalancer() [2/2]

template<class GridType >
Dune::Fem::LoadBalancer< GridType >::LoadBalancer ( GridType &  grid)
inlineexplicitprotected

◆ ~LoadBalancer()

template<class GridType >
virtual Dune::Fem::LoadBalancer< GridType >::~LoadBalancer ( )
inlinevirtual

destructor

Member Function Documentation

◆ addDiscreteFunction() [1/2]

template<class GridType >
template<class DiscreteFunctionType >
void Dune::Fem::LoadBalancer< GridType >::addDiscreteFunction ( DiscreteFunctionType &  df)
inline

add discrete function to data inliner/xtractor list

◆ addDiscreteFunction() [2/2]

template<class GridType >
template<class DiscreteFunctionType , class ContainsCheck >
void Dune::Fem::LoadBalancer< GridType >::addDiscreteFunction ( DiscreteFunctionType &  df,
const ContainsCheck &  containsCheck 
)
inline

add discrete function to data inliner/xtractor list

◆ addToLoadBalancer()

template<class GridType >
template<class DiscreteFunctionType >
void Dune::Fem::LoadBalancer< GridType >::addToLoadBalancer ( DiscreteFunctionType &  df)
inline

add discrete function to data inliner/xtractor list

◆ communicate()

template<class GridType >
void Dune::Fem::LoadBalancer< GridType >::communicate ( ) const
inline

◆ loadBalance()

template<class GridType >
bool Dune::Fem::LoadBalancer< GridType >::loadBalance ( )
inlinevirtual

do load balance

Implements Dune::Fem::LoadBalancerInterface.

◆ loadBalanceTime()

template<class GridType >
virtual double Dune::Fem::LoadBalancer< GridType >::loadBalanceTime ( ) const
inlinevirtual

time that last load balance cycle took

Reimplemented from Dune::Fem::LoadBalancerInterface.

Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >.

Member Data Documentation

◆ balanceTime_

template<class GridType >
double Dune::Fem::LoadBalancer< GridType >::balanceTime_
protected

◆ collList_

template<class GridType >
std::vector< DataCollectorPairType > Dune::Fem::LoadBalancer< GridType >::collList_
protected

◆ commList_

template<class GridType >
CommunicationManagerList Dune::Fem::LoadBalancer< GridType >::commList_
mutableprotected

◆ dm_

template<class GridType >
DofManagerType& Dune::Fem::LoadBalancer< GridType >::dm_
protected

DofManager corresponding to grid.

◆ grid_

template<class GridType >
GridType& Dune::Fem::LoadBalancer< GridType >::grid_
protected

corresponding grid

◆ listOfFcts_

template<class GridType >
std::set< const IsDiscreteFunction * > Dune::Fem::LoadBalancer< GridType >::listOfFcts_
protected

◆ localList_

template<class GridType >
std::vector< LocalDataCollectorPairType > Dune::Fem::LoadBalancer< GridType >::localList_
protected

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