|
| virtual tMemSize | getMemorySize () const |
| | return the memory size of the class and the memory size of all its attributes/associations More...
|
| |
| virtual tMemSize | getContentsMemorySize () const |
| | return the memory size of the included associations More...
|
| |
|
void | setConnectedCoresNumber (const tMPIInteger &nConnectedCores) |
| | set connected cores number
|
| |
|
const std::valarray< tMPICoreId > & | getConnectedCores () const |
| | get the connected cores
|
| |
|
std::valarray< tMPICoreId > & | getConnectedCores () |
| | get the connected cores
|
| |
|
void | setBoundParticlesNumber (const tIndex &n) |
| | set the bound particles number
|
| |
|
const std::valarray< tIndex > & | getBoundParticles () const |
| | get bound particles list
|
| |
|
std::valarray< tIndex > & | getBoundParticles () |
| | get bound particles list
|
| |
|
const std::valarray< tMPIInteger > & | getBoundParticlesOffset () const |
| | get bound particles list offset
|
| |
|
std::valarray< tMPIInteger > & | getBoundParticlesOffset () |
| | get bound particles list offset
|
| |
|
const std::valarray< tMPIInteger > & | getHaloParticlesOffset () const |
| | get halo particles list offset
|
| |
|
std::valarray< tMPIInteger > & | getHaloParticlesOffset () |
| | get halo particles list offset
|
| |
|
const std::vector< tMPIInteger > & | getHaloConnectionsTag () const |
| | get halo connections tag
|
| |
|
std::vector< tMPIInteger > & | getHaloConnectionsTag () |
| | get halo connections tag
|
| |
| tBoolean | mpiExchangeFieldValues (SM_RealField &F) |
| | exchange the data of F between connected cores More...
|
| |
|
virtual tString | toString () const override |
| | return the string representation of the class
|
| |
| virtual void | copy (const SM_Network &network) |
| | copy the network More...
|
| |
| const int & | getIndex () const |
| | create new instance of the network More...
|
| |
|
const int & | getRootIndex () const |
| | index of the root network for network defined with many parts for mpi version
|
| |
|
const int & | getIndicesNumber () const |
| | get the number of network parts
|
| |
|
const tString & | getIndexPrefix () const |
| | index of the root network for network defined with many parts for mpi version
|
| |
| void | setIndex (const int &index, const int &rootIndex, const int &indicesNumber) |
| | set the index of the network More...
|
| |
| void | setIndex (const int &index, const int &rootIndex, const int &indicesNumber, const tString &prefix) |
| | set the index of the network More...
|
| |
| void | setPeriodicity (const std::initializer_list< tBoolean > &&period) |
| | set periodicity More...
|
| |
| void | setPeriodicity (const std::array< tBoolean, SM_Constants::DIM > &period) |
| | set periodicity More...
|
| |
| void | setPeriodicity (const std::vector< tBoolean > &period) |
| | set periodicity More...
|
| |
| const std::array< tBoolean, SM_Constants::DIM > & | getPeriodicity () const |
| | get periodicity per direction More...
|
| |
| void | setParticlesNumber (const tInteger &nParticles) |
| | set the particles number More...
|
| |
| void | setSize (const tInteger &nParticles, const tInteger &nHaloParticles) |
| | set the size of the network More...
|
| |
| const tInteger & | getParticlesNumber () const |
| | return the particles number More...
|
| |
| const tInteger & | getHaloParticlesNumber () const |
| | return the halo particles number More...
|
| |
| void | setParticlesCoordinates (std::initializer_list< tReal > &&coords) |
| | void set particles 3D-coordinates More...
|
| |
| void | setParticlesCoordinates (const std::initializer_list< tReal > &coords) |
| | void set particles 3D-coordinates More...
|
| |
| void | setParticlesCoordinates (const SM_RealField &coords) |
| | void set particles coordinates More...
|
| |
| const SM_RealField & | getParticlesCoordinates () const |
| | void get particles coordinates More...
|
| |
| SM_RealField & | getParticlesCoordinates () |
| | void get particles coordinates More...
|
| |
| const std::valarray< tIndex > & | getNeighboringParticlesList () const |
| | get the neighbors indices More...
|
| |
| std::valarray< tIndex > & | getNeighboringParticlesList () |
| | get the neighbors indices More...
|
| |
| tIndex | getNeighboringParticlesNumber () const |
| | get the number of connections More...
|
| |
| tIndex | getConnectionsNumber () const |
| | get the number of connections More...
|
| |
| const std::valarray< tIndex > & | getNeighboringParticlesNumberOffset () const |
| | get the index of the array mNeighboringParticlesList of the first neighbor of the particle p More...
|
| |
| std::valarray< tIndex > & | getNeighboringParticlesNumberOffset () |
| | get the index of the array mNeighboringParticlesList of the first neighbor of the particle p More...
|
| |
| const tIndex * | getNeighboringParticlesList (const tIndex &i) const |
| | get the index of neighboring particles list for the particle i for reading More...
|
| |
| tIndex | getNeighboringParticlesNumber (const tIndex &i) const |
| | get the number of neighboring particles for the particle i for writing More...
|
| |
| void | setNeighboringParticlesList (std::valarray< tUCInt > &&neighborsNumber, std::valarray< tIndex > &&neighborsList) |
| | set the neighbors list and offset for list More...
|
| |
| void | setNeighboringParticlesList (const std::valarray< tUCInt > &neighborsNumber, const std::vector< tIndex > &neighborsList) |
| | set the neighboring particles list and its offset More...
|
| |
| tIndex | computeAloneParticlesNumber () const |
| | return the particles number without any connection More...
|
| |
| tBoolean | hasConnectionValues () const |
| | has connection values More...
|
| |
| tIndex | getConnectionValuesNumber () const |
| | get the number of connection values More...
|
| |
| const std::valarray< tReal > & | getConnectionValues () const |
| | get the connection values for reading More...
|
| |
| std::valarray< tReal > & | getConnectionValues () |
| | get the connection values for writing More...
|
| |
| tReal & | getConnectionValue (const tIndex &i, const tIndex &j, tBoolean &isFound) |
| | get the value of the connection between particle i and j fro writing More...
|
| |
| const tReal & | getConnectionValue (const tIndex &i, const tIndex &j, tBoolean &isFound) const |
| | get the value of the connection between particle i and j for reading More...
|
| |
| const tReal * | getConnectionValues (const tIndex &i) const |
| | get the connections values of the particle i for reading More...
|
| |
| tReal * | getConnectionValues (const tIndex &i) |
| | get the connections values of the particle i for writing More...
|
| |
| const std::array< tReal, SM_Constants::DIM > & | getBoundingBoxMinPoint () const |
| | get the min point of the boudning box More...
|
| |
| const std::array< tReal, SM_Constants::DIM > & | getBoundingBoxSize () const |
| | get the size of the boudning box More...
|
| |
| tBoolean | saveToFile (const tString &fileName) const |
| | save the network into file More...
|
| |
| tBoolean | loadFromFile (const tString &fileName) |
| | load the network from file More...
|
| |
|
| SM_Object (void) |
| | create
|
| |
|
virtual | ~SM_Object (void) |
| | destroy
|
| |
| template<class T > |
| std::shared_ptr< T > | getSharedPointer () |
| | return the shared pointer for this More...
|
| |
| template<class T > |
| std::shared_ptr< const T > | getConstSharedPointer () const |
| | return a const shared pointer for this More...
|
| |
| template<class T > |
| tBoolean | isInstanceOf () const |
| | test if the clas T is an instance of this class More...
|
| |
| tString | getClassName () const |
| | return the name of the class More...
|
| |
| tString | getPointerString () const |
| | retrun the pointer of the class as a string More...
|
| |
| tString | getIdentityString () const |
| | retrun the string identification of the class More...
|
| |
This class describes an MPI implementation of interface class SM_Network . It implements the abstract virtuam methods of the base class SM_Network :
It has the data attributes :
- mConnectedCores : a list of cores whose network is connected to this
- mHaloParticlesOffset : the first halo particle index withing the halo particles list (of size halo particles number) of each connected network
- mBoundParticles : the list of bound particles of the network this
- mBoundParticlesOffset : the first bound particle index within the bound particles list corresponding to first halo particle of each connected network
- mHaloConnectionsTag : the MPI connection tag of connection betwen a particle and an halo partucle of the network
It has the state attributes: -mBoundFieldValues : the values on bound particles with the same size of mBoundParticles x SM_Constants::DIM -mRequests : the mpi communication requests list
The main method of the class is to exchange data between 2 connected networks SMOMPI_Network::mpiExchangeFieldValues(SM_RealField& F)
- Author
- Stephane Despreaux
- Version
- 3.0