COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
FieldSynchronizer Class Reference

Helper struct to synchronize fields at the end of a loop. More...

#include <FieldSync.hpp>

Inherits noncopyable.

Public Member Functions

void insert (mesh::Field &f, bool do_periodic_element_update)
 
void synchronize ()
 Sync fields and clear the list. More...
 

Static Public Member Functions

static FieldSynchronizerinstance ()
 Singleton implementation. More...
 

Private Types

typedef std::map< std::string, std::pair< Handle< mesh::Field >, bool > > FieldsT
 

Private Member Functions

 FieldSynchronizer ()
 

Private Attributes

FieldsT m_fields
 

Detailed Description

Helper struct to synchronize fields at the end of a loop.

Definition at line 21 of file FieldSync.hpp.

Member Typedef Documentation

typedef std::map< std::string, std::pair<Handle<mesh::Field>, bool> > FieldsT
private

Definition at line 40 of file FieldSync.hpp.

Constructor & Destructor Documentation

FieldSynchronizer ( )
private

Definition at line 17 of file FieldSync.cpp.

Member Function Documentation

void insert ( mesh::Field f,
bool  do_periodic_element_update 
)

Insert a field to synchronize

Parameters
do_periodic_element_updateSum together periodic entries, i.e. after an element loop that updates nodal values

Definition at line 28 of file FieldSync.cpp.

FieldSynchronizer & instance ( )
static

Singleton implementation.

Definition at line 21 of file FieldSync.cpp.

void synchronize ( )

Sync fields and clear the list.

Definition at line 33 of file FieldSync.cpp.

Member Data Documentation

FieldsT m_fields
private

Definition at line 41 of file FieldSync.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin