MaMiCo 1.2
|
interface to couette solver More...
#include <CouetteSolverInterface.h>
Public Member Functions | |
CouetteSolverInterface (tarch::la::Vector< dim, unsigned int > globalNumberCouplingCells, unsigned int outerRegion=1) | |
a simple constructor | |
virtual | ~CouetteSolverInterface () |
a dummy destructor | |
unsigned int | getOuterRegion () override |
std::vector< unsigned int > | getRanks (I01 idx) override |
calculates for a coupling cell index, which rank holds it | |
![]() | |
MacroscopicSolverInterface () | |
virtual | ~MacroscopicSolverInterface () |
virtual std::vector< unsigned int > | getSourceRanks (I01 idx) |
virtual std::vector< unsigned int > | getTargetRanks (I01 idx) |
Private Attributes | |
const unsigned int | _outerRegion |
defines an offset of cells which is considered to be the outer region | |
const tarch::la::Vector< dim, unsigned int > | _globalNumberCouplingCells |
global number of coupling cells | |
interface to couette solver
We only receive data from MD in the inner region, and we only send data for the outer region to MD. What "outer" means is specified by the arguments of the interface; moreover, we do not send the ghost layer data from Couette to MD. "inner" refers to "not outer" ;-) By default, the argument outerRegion is set to 1: this yields that only the first non-ghost layer of coupling cells shall be sent to MD, and all other inner coupling cells are received from MD. The couette solver is expected to only run on rank 0.
dim | refers to the spacial dimension of the simulation, can be 1, 2, or 3 |
|
inline |
a simple constructor
globalNumberCouplingCells | the total number of coupling cells |
outerRegion | defines, how many cell layers will be sent to the MD solver |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
calculates for a coupling cell index, which rank holds it
globalCellIndex | global dimensioned cell index to check for |
Implements coupling::interface::MacroscopicSolverInterface< dim >.