dune-fem  2.4.1-rc
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
Dune::Fem::DefaultCommunicationManager< Space > Class Template Reference

default communication manager using just the grids communicate method More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/common/communicationmanager.hh>

Inheritance diagram for Dune::Fem::DefaultCommunicationManager< Space >:
Inheritance graph

Classes

class  NonBlockingCommunication
 

Public Types

typedef Space SpaceType
 
typedef NonBlockingCommunication NonBlockingCommunicationType
 

Public Member Functions

 DefaultCommunicationManager (const SpaceType &space, const InterfaceType interface, const CommunicationDirection dir)
 constructor taking space and communication interface/direction More...
 
InterfaceType communicationInterface () const
 return communication interface More...
 
CommunicationDirection communicationDirection () const
 return communication direction More...
 
double buildTime () const
 return time needed for last build More...
 
double exchangeTime () const
 return time needed for last exchange of data More...
 
NonBlockingCommunicationType nonBlockingCommunication () const
 return object for non-blocking communication More...
 
template<class DiscreteFunction >
void exchange (DiscreteFunction &discreteFunction) const
 exchange data for a discrete function using the copy operation More...
 
template<class DiscreteFunction , class Operation >
void exchange (DiscreteFunction &discreteFunction, const Operation *operation) const
 exchange data for a discrete function using the given operation More...
 

Protected Types

typedef DefaultCommunicationManager< Space > ThisType
 

Protected Attributes

const SpaceTypespace_
 
const InterfaceType interface_
 
const CommunicationDirection dir_
 
double exchangeTime_
 

Detailed Description

template<class Space>
class Dune::Fem::DefaultCommunicationManager< Space >

default communication manager using just the grids communicate method

Member Typedef Documentation

template<class Space>
typedef Space Dune::Fem::DefaultCommunicationManager< Space >::SpaceType
template<class Space>
typedef DefaultCommunicationManager< Space > Dune::Fem::DefaultCommunicationManager< Space >::ThisType
protected

Constructor & Destructor Documentation

template<class Space>
Dune::Fem::DefaultCommunicationManager< Space >::DefaultCommunicationManager ( const SpaceType space,
const InterfaceType  interface,
const CommunicationDirection  dir 
)
inlineexplicit

constructor taking space and communication interface/direction

Referenced by Dune::Fem::DefaultCommunicationManager< SpaceImp >::DefaultCommunicationManager().

Member Function Documentation

template<class Space>
double Dune::Fem::DefaultCommunicationManager< Space >::buildTime ( ) const
inline

return time needed for last build

Returns
time needed for last build of caches (if needed)
template<class Space>
CommunicationDirection Dune::Fem::DefaultCommunicationManager< Space >::communicationDirection ( ) const
inline

return communication direction

template<class Space>
InterfaceType Dune::Fem::DefaultCommunicationManager< Space >::communicationInterface ( ) const
inline

return communication interface

template<class Space>
template<class DiscreteFunction >
void Dune::Fem::DefaultCommunicationManager< Space >::exchange ( DiscreteFunction &  discreteFunction) const
inline

exchange data for a discrete function using the copy operation

Parameters
discreteFunctiondiscrete function to communicate

Referenced by Dune::Fem::DefaultCommunicationManager< SpaceImp >::exchange().

template<class Space>
template<class DiscreteFunction , class Operation >
void Dune::Fem::DefaultCommunicationManager< Space >::exchange ( DiscreteFunction &  discreteFunction,
const Operation *  operation 
) const
inline

exchange data for a discrete function using the given operation

The used operation is derived from the type of the op-pointer. The actual pointer is not used.

Parameters
discreteFunctiondiscrete function to communicate
[in]operationa (phony) pointer to an operation
template<class Space>
double Dune::Fem::DefaultCommunicationManager< Space >::exchangeTime ( ) const
inline

return time needed for last exchange of data

Returns
time needed for last exchange of data
template<class Space>
NonBlockingCommunicationType Dune::Fem::DefaultCommunicationManager< Space >::nonBlockingCommunication ( ) const
inline

return object for non-blocking communication

Returns
NonBlockingCommunicationType containing send and receive facilities

Member Data Documentation

template<class Space>
const CommunicationDirection Dune::Fem::DefaultCommunicationManager< Space >::dir_
protected
template<class Space>
double Dune::Fem::DefaultCommunicationManager< Space >::exchangeTime_
mutableprotected
template<class Space>
const InterfaceType Dune::Fem::DefaultCommunicationManager< Space >::interface_
protected
template<class Space>
const SpaceType& Dune::Fem::DefaultCommunicationManager< Space >::space_
protected

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