MULTIBODY SIMULATION SOFTWARE - API documentation
Public Member Functions | Protected Attributes
chrono::ChLcpSharedInterfaceMPI Class Reference

#include <CHlcpSystemDescriptorMPI.h>

Collaboration diagram for chrono::ChLcpSharedInterfaceMPI:
Collaboration graph
[legend]

List of all members.

Public Member Functions

std::vector< ChLcpSharedVarMPI > & GetSharedVariablesList ()
virtual void BeginInsertion ()
virtual void EndInsertion ()
virtual void InsertSharedVariable (ChLcpSharedVarMPI &mv)
virtual void SetMPIfriend (int mid)
virtual int GetMPIfriend ()
virtual ChMatrixDynamicGetSharedVectorIn ()
virtual ChMatrixDynamicGetSharedVectorOut ()
virtual ChMPIrequestGetMPIrequest ()
virtual void SendMPI ()
virtual void ReceiveMPI ()
virtual void AddReceivedMPI ()
virtual void SendForcesMPI ()
virtual void ReceiveForcesMPI ()
virtual void AddReceivedForcesMPI ()

Protected Attributes

std::vector< ChLcpSharedVarMPIsharedvariables
int id_MPI
ChMatrixDynamic shared_vector_out
ChMatrixDynamic shared_vector_in
ChMPIrequest mpi_request

Detailed Description

Class for defining a vector of variables of a domain that are shared with another domain (that can be reached via MPI)


Member Function Documentation

void chrono::ChLcpSharedInterfaceMPI::EndInsertion ( ) [virtual]

End insertion of items: do some preprocessing optimization, such as allocate the proper size of the shared vector and sort shared variables according to their unique IDs.

void chrono::ChLcpSharedInterfaceMPI::ReceiveMPI ( ) [virtual]

Receives a single block of data from the friend domain that shares this set of variables, and set to 'fb' sparse vectors, by ADDING values. Note: this can be called only after EndInsertion() has been done, because of needed preoptimizations.

void chrono::ChLcpSharedInterfaceMPI::SendMPI ( ) [virtual]

Sends a single block of data to the friend domain that shares this set of variables. Note: this can be called only after EndInsertion() has been done, because of needed preoptimizations.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on Tue Jul 10 2012 by Doxygen