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_ |
|
inline |
|
inline |
|
private |
|
private |