MaMiCo 1.2
Loading...
Searching...
No Matches
FromMacro2MDSendOnly.h
1// Copyright (C) 2015 Technische Universitaet Muenchen
2// This file is part of the Mamico project. For conditions of distribution
3// and use, please see the copyright notice in Mamico's main folder, or at
4// www5.in.tum.de/mamico
5#ifndef _MOLECULARDYNAMICS_COUPLING_SENDRECV_FROMMACRO2MDSENDONLY_H_
6#define _MOLECULARDYNAMICS_COUPLING_SENDRECV_FROMMACRO2MDSENDONLY_H_
7
8#include "coupling/sendrecv/SendReceiveBuffer.h"
9#include <vector>
10
11namespace coupling {
12namespace sendrecv {
13template <class Cell_T, unsigned int dim> class FromMacro2MDSendOnly;
14}
15} // namespace coupling
16
29template <class Cell_T, unsigned int dim> class coupling::sendrecv::FromMacro2MDSendOnly : public coupling::sendrecv::SendReceiveBuffer<Cell_T, dim> {
30
31public:
34 FromMacro2MDSendOnly() : coupling::sendrecv::SendReceiveBuffer<Cell_T, dim>() {}
37
48 template <class Container_T> void sendFromMacro2MD(coupling::sendrecv::DataExchange<Cell_T, dim>& dataExchange, const Container_T& cells);
49
58 template <class Container_T> void sendFromMacro2MDNonBlocking(coupling::sendrecv::DataExchange<Cell_T, dim>& dataExchange, const Container_T& cells);
59
66
67protected:
73 template <class Container_T> void writeToSendBuffer(coupling::sendrecv::DataExchange<Cell_T, dim>& dataExchange, const Container_T& cells);
74};
75
76#include "FromMacro2MDSendOnly.cpph"
77
78#endif // _MOLECULARDYNAMICS_COUPLING_SENDRECV_FROMMACRO2MDSENDONLY_H_
generic class for the the data exchange purposes.
Definition DataExchange.h:27
SendReceiveBuffer for transfer of quantities from a macroscopic solver to the coupling cells....
Definition FromMacro2MDSendOnly.h:29
void sendFromMacro2MD(coupling::sendrecv::DataExchange< Cell_T, dim > &dataExchange, const Container_T &cells)
FromMacro2MDSendOnly()
Definition FromMacro2MDSendOnly.h:34
void sendFromMacro2MDNonBlocking(coupling::sendrecv::DataExchange< Cell_T, dim > &dataExchange, const Container_T &cells)
virtual ~FromMacro2MDSendOnly()
Definition FromMacro2MDSendOnly.h:36
void writeToSendBuffer(coupling::sendrecv::DataExchange< Cell_T, dim > &dataExchange, const Container_T &cells)
generic class for send-/ receive methodology.
Definition SendReceiveBuffer.h:35
everything necessary for coupling operations, is defined in here
Definition AdditiveMomentumInsertion.h:15