MaMiCo 1.2
|
#include <DataExchangeFromAllMacro2MD.h>
Public Member Functions | |
DataExchangeFromAllMacro2MD (coupling::interface::MacroscopicSolverInterface< dim > *interface, unsigned int topologyOffset, unsigned int tagoffset=0) | |
virtual | ~DataExchangeFromAllMacro2MD () |
std::vector< unsigned int > | getTargetRanks (I01 idx) override |
std::vector< unsigned int > | getSourceRanks (I01 idx) override |
void | readFromCell (double *const buffer, const coupling::datastructures::CouplingCell< dim > &cell) override |
void | writeToCell (const double *const buffer, coupling::datastructures::CouplingCell< dim > &cell) override |
unsigned int | getDoublesPerCell () const override |
![]() | |
DataExchange (unsigned int tag) | |
virtual | ~DataExchange () |
unsigned int | getTag () const |
Private Attributes | |
coupling::interface::MacroscopicSolverInterface< dim > * | _msi |
unsigned int | _topologyOffset |
Same as _MOLECULARDYNAMICS_COUPLING_SENDRECV_DATAEXCHANGEFROMMACRO2MD_H_ but also sends on inner cells
|
inline |
Constructor
interface | macroscopic solver interface |
tagoffset | 0 per default |
|
inlinevirtual |
Destructor
|
inlineoverridevirtual |
returns the number of doubles that are sent per coupling cell.
Implements coupling::sendrecv::DataExchange< coupling::datastructures::CouplingCell< dim >, dim >.
|
inlineoverridevirtual |
returns all ranks from which a particular cell (at index idx) is sent.
idx |
Implements coupling::sendrecv::DataExchange< coupling::datastructures::CouplingCell< dim >, dim >.
|
inlineoverridevirtual |
returns the ranks to which a particular cell (at index idx) should be sent.
idx |
Implements coupling::sendrecv::DataExchange< coupling::datastructures::CouplingCell< dim >, dim >.
|
inlineoverridevirtual |
local rule to read from coupling cell and write data to (e.g. send) buffer. We only send the macroscopic mass and macroscopic momentum from MD to the macroscopic solver.
buffer | |
cell |
Implements coupling::sendrecv::DataExchange< coupling::datastructures::CouplingCell< dim >, dim >.
|
inlineoverridevirtual |
local rule to read from receive buffer and write data to coupling cell
buffer | |
cell |
Implements coupling::sendrecv::DataExchange< coupling::datastructures::CouplingCell< dim >, dim >.