walberla::pe_coupling::discrete_particle_methods::FieldDataSwapper< Field_T > Class Template Reference

Detailed Description

template<typename Field_T>
class walberla::pe_coupling::discrete_particle_methods::FieldDataSwapper< Field_T >

Swaps the data of two identical fields.

This functionality is e.g. used to store a former version of the velocity field to calculate the time derivative of the velocity numerically.

#include <FieldDataSwapper.h>

Public Member Functions

 FieldDataSwapper (const BlockDataID &srcFieldID, const BlockDataID &dstFieldID)
 
void operator() (IBlock *const block)
 

Private Attributes

const BlockDataID srcFieldID_
 
const BlockDataID dstFieldID_
 

Constructor & Destructor Documentation

◆ FieldDataSwapper()

template<typename Field_T >
walberla::pe_coupling::discrete_particle_methods::FieldDataSwapper< Field_T >::FieldDataSwapper ( const BlockDataID srcFieldID,
const BlockDataID dstFieldID 
)
inline

Member Function Documentation

◆ operator()()

template<typename Field_T >
void walberla::pe_coupling::discrete_particle_methods::FieldDataSwapper< Field_T >::operator() ( IBlock *const  block)
inline

Member Data Documentation

◆ dstFieldID_

template<typename Field_T >
const BlockDataID walberla::pe_coupling::discrete_particle_methods::FieldDataSwapper< Field_T >::dstFieldID_
private

◆ srcFieldID_

template<typename Field_T >
const BlockDataID walberla::pe_coupling::discrete_particle_methods::FieldDataSwapper< Field_T >::srcFieldID_
private

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