Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::DECOptions Class Reference
Inheritance diagram for MEDCoupling::DECOptions:

Public Member Functions

 DECOptions ()
 
 DECOptions (const DECOptions &deco)
 
AllToAllMethod getAllToAllMethod () const
 
bool getAsynchronous () const
 
bool getForcedRenormalization () const
 
const std::string & getMethod () const
 
TimeInterpolationMethod getTimeInterpolationMethod () const
 
void setAllToAllMethod (AllToAllMethod sp)
 
void setAsynchronous (bool dr)
 
void setForcedRenormalization (bool dr)
 
void setMethod (const char *m)
 
void setTimeInterpolationMethod (TimeInterpolationMethod it)
 

Protected Attributes

AllToAllMethod _allToAllMethod
 
bool _asynchronous
 
bool _forcedRenormalization
 
std::string _method
 
TimeInterpolationMethod _timeInterpolationMethod
 

Detailed Description

This class groups the various options accepted by all DECs (which all inherit from DECOptions).

The following code excerpt shows how to set options on a DEC :

InterpKernelDEC dec(source_group,target_group);
dec.setForcedRenormalization(true);
dec.attachLocalField(field);
dec.synchronize();
if (source_group.containsMyRank())
dec.sendData();
else
dec.recvData();

Constructor & Destructor Documentation

MEDCoupling::DECOptions::DECOptions ( )
MEDCoupling::DECOptions::DECOptions ( const DECOptions deco)

Member Function Documentation

const std::string& MEDCoupling::DECOptions::getMethod ( ) const
void MEDCoupling::DECOptions::setMethod ( const char *  m)

Set interpolation method. Defaults to "P0".

References _method.

TimeInterpolationMethod MEDCoupling::DECOptions::getTimeInterpolationMethod ( ) const
void MEDCoupling::DECOptions::setTimeInterpolationMethod ( TimeInterpolationMethod  it)

Set time interpolation method. Default to WithoutTimeInterp.

References _timeInterpolationMethod.

bool MEDCoupling::DECOptions::getForcedRenormalization ( ) const
void MEDCoupling::DECOptions::setForcedRenormalization ( bool  dr)

Force renormalization of the field after it has been received so that the total sum of the field values are the same on both the sending and the receiving side. Defaults to false.

References _forcedRenormalization.

bool MEDCoupling::DECOptions::getAsynchronous ( ) const
See Also
setAsynchronous()

References _asynchronous.

void MEDCoupling::DECOptions::setAsynchronous ( bool  dr)

Switch to asynchronous data transfer mode. Default is false.

References _asynchronous.

AllToAllMethod MEDCoupling::DECOptions::getAllToAllMethod ( ) const
See Also
setAllToAllMethod()

References _allToAllMethod.

void MEDCoupling::DECOptions::setAllToAllMethod ( AllToAllMethod  sp)

Set the broadcast method for synchronisation processes. Default to Native.

References _allToAllMethod.

Member Data Documentation

std::string MEDCoupling::DECOptions::_method
protected
bool MEDCoupling::DECOptions::_asynchronous
protected
TimeInterpolationMethod MEDCoupling::DECOptions::_timeInterpolationMethod
protected
AllToAllMethod MEDCoupling::DECOptions::_allToAllMethod
protected
bool MEDCoupling::DECOptions::_forcedRenormalization
protected