KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::Communicator Class Reference

The Commmunicator class manages communication for distributed ModelPart instances. More...

#include <communicator.h>

Inheritance diagram for Kratos::Communicator:
Collaboration diagram for Kratos::Communicator:

Public Member Functions

Life Cycle
 Communicator ()
 Default constructor. More...
 
 Communicator (const DataCommunicator &rDataCommunicator)
 Constructor using a custom DataCommunicator. More...
 
 Communicator (Communicator const &rOther)
 Copy constructor. More...
 
virtual ~Communicator ()=default
 Destructor. More...
 
virtual Communicator::Pointer Create (const DataCommunicator &rDataCommunicator) const
 
Communicator::Pointer Create () const
 
Operators
Communicatoroperator= (Communicator const &rOther)=delete
 Assignment operator. More...
 
Access
virtual bool IsDistributed () const
 
virtual int MyPID () const
 
virtual int TotalProcesses () const
 
SizeType GlobalNumberOfNodes () const
 
SizeType GlobalNumberOfElements () const
 
SizeType GlobalNumberOfConditions () const
 
SizeType GlobalNumberOfMasterSlaveConstraints () const
 
SizeType GetNumberOfColors () const
 
void SetNumberOfColors (SizeType NewNumberOfColors)
 
void AddColors (SizeType NumberOfAddedColors)
 
NeighbourIndicesContainerTypeNeighbourIndices ()
 
NeighbourIndicesContainerType const & NeighbourIndices () const
 
void SetLocalMesh (MeshType::Pointer pGivenMesh)
 Set the local mesh pointer to the given mesh. More...
 
MeshType::Pointer pLocalMesh ()
 Returns pointer to the mesh storing all local entities. More...
 
MeshType::Pointer pGhostMesh ()
 Returns pointer to the mesh storing all ghost entities. More...
 
MeshType::Pointer pInterfaceMesh ()
 Returns pointer to the mesh storing all interface entities. More...
 
const MeshType::Pointer pLocalMesh () const
 Returns a constant pointer to the mesh storing all local entities. More...
 
const MeshType::Pointer pGhostMesh () const
 Returns a constant pointer to the mesh storing all ghost entities. More...
 
const MeshType::Pointer pInterfaceMesh () const
 Returns a constant pointer to the mesh storing all interface entities. More...
 
MeshType::Pointer pLocalMesh (IndexType ThisIndex)
 
MeshType::Pointer pGhostMesh (IndexType ThisIndex)
 
MeshType::Pointer pInterfaceMesh (IndexType ThisIndex)
 
const MeshType::Pointer pLocalMesh (IndexType ThisIndex) const
 
const MeshType::Pointer pGhostMesh (IndexType ThisIndex) const
 
const MeshType::Pointer pInterfaceMesh (IndexType ThisIndex) const
 
MeshTypeLocalMesh ()
 Returns the reference to the mesh storing all local entities. More...
 
MeshTypeGhostMesh ()
 Returns the reference to the mesh storing all ghost entities. More...
 
MeshTypeInterfaceMesh ()
 Returns the reference to the mesh storing all interface entities. More...
 
MeshType const & LocalMesh () const
 Returns a constant reference to the mesh storing all local entities. More...
 
MeshType const & GhostMesh () const
 Returns a constant reference to the mesh storing all ghost entities. More...
 
MeshType const & InterfaceMesh () const
 Returns a constant reference to the mesh storing all interface entities. More...
 
MeshTypeLocalMesh (IndexType ThisIndex)
 
MeshTypeGhostMesh (IndexType ThisIndex)
 
MeshTypeInterfaceMesh (IndexType ThisIndex)
 
MeshType const & LocalMesh (IndexType ThisIndex) const
 
MeshType const & GhostMesh (IndexType ThisIndex) const
 
MeshType const & InterfaceMesh (IndexType ThisIndex) const
 
MeshesContainerTypeLocalMeshes ()
 
MeshesContainerTypeGhostMeshes ()
 
MeshesContainerTypeInterfaceMeshes ()
 
MeshesContainerType const & LocalMeshes () const
 
MeshesContainerType const & GhostMeshes () const
 
MeshesContainerType const & InterfaceMeshes () const
 
virtual const DataCommunicatorGetDataCommunicator () const
 
Operations
virtual bool SynchronizeNodalSolutionStepsData ()
 
virtual bool SynchronizeDofs ()
 
virtual bool SynchronizeVariable (Variable< int > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< double > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< bool > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< array_1d< double, 3 > > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< array_1d< double, 4 > > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< array_1d< double, 6 > > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< array_1d< double, 9 > > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< Vector > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< Matrix > const &rThisVariable)
 
virtual bool SynchronizeVariable (Variable< Quaternion< double >> const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< int > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< double > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< bool > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< array_1d< double, 3 > > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< array_1d< double, 4 > > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< array_1d< double, 6 > > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< array_1d< double, 9 > > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< Vector > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< Matrix > const &rThisVariable)
 
virtual bool SynchronizeNonHistoricalVariable (Variable< Quaternion< double >> const &rThisVariable)
 
virtual bool SynchronizeCurrentDataToMax (Variable< double > const &ThisVariable)
 Synchronize variable in nodal solution step data to the maximum value across all processes. More...
 
virtual bool SynchronizeNonHistoricalDataToMax (Variable< double > const &ThisVariable)
 Synchronize variable in nodal data to the maximum value across all processes. More...
 
virtual bool SynchronizeCurrentDataToAbsMax (Variable< double > const &ThisVariable)
 Synchronize variable in nodal solution step data to the absolute maximum value across all processes. More...
 
virtual bool SynchronizeNonHistoricalDataToAbsMax (Variable< double > const &ThisVariable)
 Synchronize variable in nodal data to the absolute maximum value across all processes. More...
 
virtual bool SynchronizeCurrentDataToMin (Variable< double > const &ThisVariable)
 Synchronize variable in nodal solution step data to the minimum value across all processes. More...
 
virtual bool SynchronizeNonHistoricalDataToMin (Variable< double > const &ThisVariable)
 Synchronize variable in nodal data to the minimum value across all processes. More...
 
virtual bool SynchronizeCurrentDataToAbsMin (Variable< double > const &ThisVariable)
 Synchronize variable in nodal solution step data to the absolute minimum value across all processes. More...
 
virtual bool SynchronizeNonHistoricalDataToAbsMin (Variable< double > const &ThisVariable)
 Synchronize variable in nodal data to the absolute minimum value across all processes. More...
 
virtual bool SynchronizeElementalFlags ()
 
virtual bool AssembleCurrentData (Variable< int > const &ThisVariable)
 
virtual bool AssembleCurrentData (Variable< double > const &ThisVariable)
 
virtual bool AssembleCurrentData (Variable< array_1d< double, 3 > > const &ThisVariable)
 
virtual bool AssembleCurrentData (Variable< Vector > const &ThisVariable)
 
virtual bool AssembleCurrentData (Variable< Matrix > const &ThisVariable)
 
virtual bool AssembleNonHistoricalData (Variable< int > const &ThisVariable)
 
virtual bool AssembleNonHistoricalData (Variable< double > const &ThisVariable)
 
virtual bool AssembleNonHistoricalData (Variable< array_1d< double, 3 > > const &ThisVariable)
 
virtual bool AssembleNonHistoricalData (Variable< DenseVector< array_1d< double, 3 > > > const &ThisVariable)
 
virtual bool AssembleNonHistoricalData (Variable< Vector > const &ThisVariable)
 
virtual bool AssembleNonHistoricalData (Variable< Matrix > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< int > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< double > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< array_1d< double, 3 > > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< DenseVector< array_1d< double, 3 > > > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< DenseVector< int > > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< Vector > const &ThisVariable)
 
virtual bool SynchronizeElementalNonHistoricalVariable (Variable< Matrix > const &ThisVariable)
 
virtual bool TransferObjects (std::vector< NodesContainerType > &SendObjects, std::vector< NodesContainerType > &RecvObjects)
 
virtual bool TransferObjects (std::vector< ElementsContainerType > &SendObjects, std::vector< ElementsContainerType > &RecvObjects)
 
virtual bool TransferObjects (std::vector< ConditionsContainerType > &SendObjects, std::vector< ConditionsContainerType > &RecvObjects)
 
virtual bool TransferObjects (std::vector< NodesContainerType > &SendObjects, std::vector< NodesContainerType > &RecvObjects, Kratos::Serializer &particleSerializer)
 
virtual bool TransferObjects (std::vector< ElementsContainerType > &SendObjects, std::vector< ElementsContainerType > &RecvObjects, Kratos::Serializer &particleSerializer)
 
virtual bool TransferObjects (std::vector< ConditionsContainerType > &SendObjects, std::vector< ConditionsContainerType > &RecvObjects, Kratos::Serializer &particleSerializer)
 
virtual bool SynchronizeOrNodalFlags (const Flags &TheFlags)
 
virtual bool SynchronizeAndNodalFlags (const Flags &TheFlags)
 
virtual bool SynchronizeNodalFlags ()
 
void Clear ()
 
Inquiry
virtual std::string Info () const
 Turn back information as a string. More...
 
virtual void PrintInfo (std::ostream &rOStream) const
 Print information about this object. More...
 
virtual void PrintData (std::ostream &rOStream, std::string const &rPrefixString="") const
 Print object's data. More...
 

Protected Attributes

Protected member Variables
SizeType mNumberOfColors
 
NeighbourIndicesContainerType mNeighbourIndices
 
MeshType::Pointer mpLocalMesh
 
MeshType::Pointer mpGhostMesh
 
MeshType::Pointer mpInterfaceMesh
 
MeshesContainerType mLocalMeshes
 
MeshesContainerType mGhostMeshes
 
MeshesContainerType mInterfaceMeshes
 
const DataCommunicatormrDataCommunicator
 

Type Definitions

typedef unsigned int IndexType
 
typedef unsigned int SizeType
 
typedef Node NodeType
 
typedef Properties PropertiesType
 
typedef Element ElementType
 
typedef Condition ConditionType
 
typedef DenseVector< intNeighbourIndicesContainerType
 
typedef Mesh< NodeType, PropertiesType, ElementType, ConditionTypeMeshType
 
typedef PointerVector< MeshTypeMeshesContainerType
 
typedef MeshType::NodesContainerType NodesContainerType
 Nodes container. Which is a vector set of nodes with their Id's as key. More...
 
typedef MeshType::NodeIterator NodeIterator
 
typedef MeshType::NodeConstantIterator NodeConstantIterator
 
typedef MeshType::PropertiesContainerType PropertiesContainerType
 Properties container. Which is a vector set of Properties with their Id's as key. More...
 
typedef MeshType::PropertiesIterator PropertiesIterator
 
typedef MeshType::PropertiesConstantIterator PropertiesConstantIterator
 
typedef MeshType::ElementsContainerType ElementsContainerType
 Element container. A vector set of Elements with their Id's as key. More...
 
typedef MeshType::ElementIterator ElementIterator
 
typedef MeshType::ElementConstantIterator ElementConstantIterator
 
typedef MeshType::ConditionsContainerType ConditionsContainerType
 Condintions container. A vector set of Conditions with their Id's as key. More...
 
typedef MeshType::ConditionIterator ConditionIterator
 
typedef MeshType::ConditionConstantIterator ConditionConstantIterator
 
 KRATOS_CLASS_POINTER_DEFINITION (Communicator)
 Pointer definition of Communicator. More...
 

Detailed Description

The Commmunicator class manages communication for distributed ModelPart instances.

The base Communicator class only holds the required data (local and remote mesh interfaces) for communication. The actual communication is implemented in the derived MPICommunicator.

Member Typedef Documentation

◆ ConditionConstantIterator

Const iterator over the Conditions. This iterator is an indirect iterator over Conditions::Pointer which turn back a reference to Condition by * operator and not a pointer for more convenient usage.

◆ ConditionIterator

Iterator over the Conditions. This iterator is an indirect iterator over Conditions::Pointer which turn back a reference to Condition by * operator and not a pointer for more convenient usage.

◆ ConditionsContainerType

Condintions container. A vector set of Conditions with their Id's as key.

◆ ConditionType

◆ ElementConstantIterator

Const iterator over the Elements. This iterator is an indirect iterator over Elements::Pointer which turn back a reference to Element by * operator and not a pointer for more convenient usage.

◆ ElementIterator

Iterator over the Elements. This iterator is an indirect iterator over Elements::Pointer which turn back a reference to Element by * operator and not a pointer for more convenient usage.

◆ ElementsContainerType

Element container. A vector set of Elements with their Id's as key.

Iterator over the properties. This iterator is an indirect iterator over Properties::Pointer which turn back a reference to properties by * operator and not a pointer for more convenient usage.

◆ ElementType

◆ IndexType

◆ MeshesContainerType

◆ MeshType

◆ NeighbourIndicesContainerType

◆ NodeConstantIterator

Const iterator over the nodes. This iterator is an indirect iterator over Node::Pointer which turn back a reference to node by * operator and not a pointer for more convenient usage.

◆ NodeIterator

Iterator over the nodes. This iterator is an indirect iterator over Node::Pointer which turn back a reference to node by * operator and not a pointer for more convenient usage.

◆ NodesContainerType

Nodes container. Which is a vector set of nodes with their Id's as key.

◆ NodeType

◆ PropertiesConstantIterator

Const iterator over the Properties. This iterator is an indirect iterator over Properties::Pointer which turn back a reference to Properties by * operator and not a pointer for more convenient usage.

◆ PropertiesContainerType

Properties container. Which is a vector set of Properties with their Id's as key.

Iterator over the properties. This iterator is an indirect iterator over Properties::Pointer which turn back a reference to properties by * operator and not a pointer for more convenient usage.

◆ PropertiesIterator

Iterator over the Properties. This iterator is an indirect iterator over Node::Pointer which turn back a reference to node by * operator and not a pointer for more convenient usage.

◆ PropertiesType

◆ SizeType

Constructor & Destructor Documentation

◆ Communicator() [1/3]

Kratos::Communicator::Communicator ( )

Default constructor.

◆ Communicator() [2/3]

Kratos::Communicator::Communicator ( const DataCommunicator rDataCommunicator)

Constructor using a custom DataCommunicator.

This constructor is intended for use from derived classes, since the base Communicator class will often not use the communicator at all.

Parameters
rDataCommunicatorReference to a DataCommunicator.

◆ Communicator() [3/3]

Kratos::Communicator::Communicator ( Communicator const &  rOther)

Copy constructor.

◆ ~Communicator()

virtual Kratos::Communicator::~Communicator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ AddColors()

void Kratos::Communicator::AddColors ( SizeType  NumberOfAddedColors)

◆ AssembleCurrentData() [1/5]

bool Kratos::Communicator::AssembleCurrentData ( Variable< array_1d< double, 3 > > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleCurrentData() [2/5]

bool Kratos::Communicator::AssembleCurrentData ( Variable< double > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleCurrentData() [3/5]

bool Kratos::Communicator::AssembleCurrentData ( Variable< int > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleCurrentData() [4/5]

bool Kratos::Communicator::AssembleCurrentData ( Variable< Matrix > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleCurrentData() [5/5]

bool Kratos::Communicator::AssembleCurrentData ( Variable< Vector > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleNonHistoricalData() [1/6]

bool Kratos::Communicator::AssembleNonHistoricalData ( Variable< array_1d< double, 3 > > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleNonHistoricalData() [2/6]

bool Kratos::Communicator::AssembleNonHistoricalData ( Variable< DenseVector< array_1d< double, 3 > > > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleNonHistoricalData() [3/6]

bool Kratos::Communicator::AssembleNonHistoricalData ( Variable< double > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleNonHistoricalData() [4/6]

bool Kratos::Communicator::AssembleNonHistoricalData ( Variable< int > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleNonHistoricalData() [5/6]

bool Kratos::Communicator::AssembleNonHistoricalData ( Variable< Matrix > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ AssembleNonHistoricalData() [6/6]

bool Kratos::Communicator::AssembleNonHistoricalData ( Variable< Vector > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ Clear()

void Kratos::Communicator::Clear ( )

◆ Create() [1/2]

Communicator::Pointer Kratos::Communicator::Create ( ) const

◆ Create() [2/2]

Communicator::Pointer Kratos::Communicator::Create ( const DataCommunicator rDataCommunicator) const
virtual

Reimplemented in Kratos::MPICommunicator.

◆ GetDataCommunicator()

const DataCommunicator & Kratos::Communicator::GetDataCommunicator ( ) const
virtual

◆ GetNumberOfColors()

Communicator::SizeType Kratos::Communicator::GetNumberOfColors ( ) const

◆ GhostMesh() [1/4]

Communicator::MeshType & Kratos::Communicator::GhostMesh ( )

Returns the reference to the mesh storing all ghost entities.

◆ GhostMesh() [2/4]

Communicator::MeshType const & Kratos::Communicator::GhostMesh ( ) const

Returns a constant reference to the mesh storing all ghost entities.

◆ GhostMesh() [3/4]

Communicator::MeshType & Kratos::Communicator::GhostMesh ( IndexType  ThisIndex)

◆ GhostMesh() [4/4]

Communicator::MeshType const & Kratos::Communicator::GhostMesh ( IndexType  ThisIndex) const

◆ GhostMeshes() [1/2]

Communicator::MeshesContainerType & Kratos::Communicator::GhostMeshes ( )

◆ GhostMeshes() [2/2]

Communicator::MeshesContainerType const & Kratos::Communicator::GhostMeshes ( ) const

◆ GlobalNumberOfConditions()

Communicator::SizeType Kratos::Communicator::GlobalNumberOfConditions ( ) const

◆ GlobalNumberOfElements()

Communicator::SizeType Kratos::Communicator::GlobalNumberOfElements ( ) const

◆ GlobalNumberOfMasterSlaveConstraints()

Communicator::SizeType Kratos::Communicator::GlobalNumberOfMasterSlaveConstraints ( ) const

◆ GlobalNumberOfNodes()

Communicator::SizeType Kratos::Communicator::GlobalNumberOfNodes ( ) const

◆ Info()

std::string Kratos::Communicator::Info ( ) const
virtual

Turn back information as a string.

Reimplemented in Kratos::MPICommunicator.

◆ InterfaceMesh() [1/4]

Communicator::MeshType & Kratos::Communicator::InterfaceMesh ( )

Returns the reference to the mesh storing all interface entities.

◆ InterfaceMesh() [2/4]

Communicator::MeshType const & Kratos::Communicator::InterfaceMesh ( ) const

Returns a constant reference to the mesh storing all interface entities.

◆ InterfaceMesh() [3/4]

Communicator::MeshType & Kratos::Communicator::InterfaceMesh ( IndexType  ThisIndex)

◆ InterfaceMesh() [4/4]

Communicator::MeshType const & Kratos::Communicator::InterfaceMesh ( IndexType  ThisIndex) const

◆ InterfaceMeshes() [1/2]

Communicator::MeshesContainerType & Kratos::Communicator::InterfaceMeshes ( )

◆ InterfaceMeshes() [2/2]

Communicator::MeshesContainerType const & Kratos::Communicator::InterfaceMeshes ( ) const

◆ IsDistributed()

bool Kratos::Communicator::IsDistributed ( ) const
virtual

Reimplemented in Kratos::MPICommunicator.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::Communicator::KRATOS_CLASS_POINTER_DEFINITION ( Communicator  )

Pointer definition of Communicator.

◆ LocalMesh() [1/4]

Communicator::MeshType & Kratos::Communicator::LocalMesh ( )

Returns the reference to the mesh storing all local entities.

◆ LocalMesh() [2/4]

Communicator::MeshType const & Kratos::Communicator::LocalMesh ( ) const

Returns a constant reference to the mesh storing all local entities.

◆ LocalMesh() [3/4]

Communicator::MeshType & Kratos::Communicator::LocalMesh ( IndexType  ThisIndex)

◆ LocalMesh() [4/4]

Communicator::MeshType const & Kratos::Communicator::LocalMesh ( IndexType  ThisIndex) const

◆ LocalMeshes() [1/2]

Communicator::MeshesContainerType & Kratos::Communicator::LocalMeshes ( )

◆ LocalMeshes() [2/2]

Communicator::MeshesContainerType const & Kratos::Communicator::LocalMeshes ( ) const

◆ MyPID()

int Kratos::Communicator::MyPID ( ) const
virtual

◆ NeighbourIndices() [1/2]

Communicator::NeighbourIndicesContainerType & Kratos::Communicator::NeighbourIndices ( )

◆ NeighbourIndices() [2/2]

Communicator::NeighbourIndicesContainerType const & Kratos::Communicator::NeighbourIndices ( ) const

◆ operator=()

Communicator& Kratos::Communicator::operator= ( Communicator const &  rOther)
delete

Assignment operator.

◆ pGhostMesh() [1/4]

Communicator::MeshType::Pointer Kratos::Communicator::pGhostMesh ( )

Returns pointer to the mesh storing all ghost entities.

◆ pGhostMesh() [2/4]

const Communicator::MeshType::Pointer Kratos::Communicator::pGhostMesh ( ) const

Returns a constant pointer to the mesh storing all ghost entities.

◆ pGhostMesh() [3/4]

Communicator::MeshType::Pointer Kratos::Communicator::pGhostMesh ( IndexType  ThisIndex)

◆ pGhostMesh() [4/4]

const Communicator::MeshType::Pointer Kratos::Communicator::pGhostMesh ( IndexType  ThisIndex) const

◆ pInterfaceMesh() [1/4]

Communicator::MeshType::Pointer Kratos::Communicator::pInterfaceMesh ( )

Returns pointer to the mesh storing all interface entities.

◆ pInterfaceMesh() [2/4]

const Communicator::MeshType::Pointer Kratos::Communicator::pInterfaceMesh ( ) const

Returns a constant pointer to the mesh storing all interface entities.

◆ pInterfaceMesh() [3/4]

Communicator::MeshType::Pointer Kratos::Communicator::pInterfaceMesh ( IndexType  ThisIndex)

◆ pInterfaceMesh() [4/4]

const Communicator::MeshType::Pointer Kratos::Communicator::pInterfaceMesh ( IndexType  ThisIndex) const

◆ pLocalMesh() [1/4]

Communicator::MeshType::Pointer Kratos::Communicator::pLocalMesh ( )

Returns pointer to the mesh storing all local entities.

◆ pLocalMesh() [2/4]

const Communicator::MeshType::Pointer Kratos::Communicator::pLocalMesh ( ) const

Returns a constant pointer to the mesh storing all local entities.

◆ pLocalMesh() [3/4]

Communicator::MeshType::Pointer Kratos::Communicator::pLocalMesh ( IndexType  ThisIndex)

◆ pLocalMesh() [4/4]

const Communicator::MeshType::Pointer Kratos::Communicator::pLocalMesh ( IndexType  ThisIndex) const

◆ PrintData()

void Kratos::Communicator::PrintData ( std::ostream &  rOStream,
std::string const &  rPrefixString = "" 
) const
virtual

Print object's data.

◆ PrintInfo()

void Kratos::Communicator::PrintInfo ( std::ostream &  rOStream) const
virtual

Print information about this object.

◆ SetLocalMesh()

void Kratos::Communicator::SetLocalMesh ( MeshType::Pointer  pGivenMesh)

Set the local mesh pointer to the given mesh.

◆ SetNumberOfColors()

void Kratos::Communicator::SetNumberOfColors ( SizeType  NewNumberOfColors)

◆ SynchronizeAndNodalFlags()

bool Kratos::Communicator::SynchronizeAndNodalFlags ( const Flags TheFlags)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeCurrentDataToAbsMax()

bool Kratos::Communicator::SynchronizeCurrentDataToAbsMax ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal solution step data to the absolute maximum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeCurrentDataToAbsMin()

bool Kratos::Communicator::SynchronizeCurrentDataToAbsMin ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal solution step data to the absolute minimum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeCurrentDataToMax()

bool Kratos::Communicator::SynchronizeCurrentDataToMax ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal solution step data to the maximum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeCurrentDataToMin()

bool Kratos::Communicator::SynchronizeCurrentDataToMin ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal solution step data to the minimum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeDofs()

bool Kratos::Communicator::SynchronizeDofs ( )
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalFlags()

bool Kratos::Communicator::SynchronizeElementalFlags ( )
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [1/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< array_1d< double, 3 > > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [2/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< DenseVector< array_1d< double, 3 > > > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [3/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< DenseVector< int > > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [4/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< double > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [5/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< int > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [6/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< Matrix > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeElementalNonHistoricalVariable() [7/7]

bool Kratos::Communicator::SynchronizeElementalNonHistoricalVariable ( Variable< Vector > const &  ThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNodalFlags()

bool Kratos::Communicator::SynchronizeNodalFlags ( )
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNodalSolutionStepsData()

bool Kratos::Communicator::SynchronizeNodalSolutionStepsData ( )
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalDataToAbsMax()

bool Kratos::Communicator::SynchronizeNonHistoricalDataToAbsMax ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal data to the absolute maximum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalDataToAbsMin()

bool Kratos::Communicator::SynchronizeNonHistoricalDataToAbsMin ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal data to the absolute minimum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalDataToMax()

bool Kratos::Communicator::SynchronizeNonHistoricalDataToMax ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal data to the maximum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalDataToMin()

bool Kratos::Communicator::SynchronizeNonHistoricalDataToMin ( Variable< double > const &  ThisVariable)
virtual

Synchronize variable in nodal data to the minimum value across all processes.

Parameters
ThisVariableThe variable to be synchronized.

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [1/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< array_1d< double, 3 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [2/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< array_1d< double, 4 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [3/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< array_1d< double, 6 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [4/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< array_1d< double, 9 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [5/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< bool > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [6/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< double > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [7/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< int > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [8/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< Matrix > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [9/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< Quaternion< double >> const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeNonHistoricalVariable() [10/10]

bool Kratos::Communicator::SynchronizeNonHistoricalVariable ( Variable< Vector > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeOrNodalFlags()

bool Kratos::Communicator::SynchronizeOrNodalFlags ( const Flags TheFlags)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [1/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< array_1d< double, 3 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [2/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< array_1d< double, 4 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [3/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< array_1d< double, 6 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [4/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< array_1d< double, 9 > > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [5/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< bool > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [6/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< double > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [7/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< int > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [8/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< Matrix > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [9/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< Quaternion< double >> const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ SynchronizeVariable() [10/10]

bool Kratos::Communicator::SynchronizeVariable ( Variable< Vector > const &  rThisVariable)
virtual

Reimplemented in Kratos::MPICommunicator.

◆ TotalProcesses()

int Kratos::Communicator::TotalProcesses ( ) const
virtual

◆ TransferObjects() [1/6]

bool Kratos::Communicator::TransferObjects ( std::vector< ConditionsContainerType > &  SendObjects,
std::vector< ConditionsContainerType > &  RecvObjects 
)
virtual

◆ TransferObjects() [2/6]

bool Kratos::Communicator::TransferObjects ( std::vector< ConditionsContainerType > &  SendObjects,
std::vector< ConditionsContainerType > &  RecvObjects,
Kratos::Serializer particleSerializer 
)
virtual

◆ TransferObjects() [3/6]

bool Kratos::Communicator::TransferObjects ( std::vector< ElementsContainerType > &  SendObjects,
std::vector< ElementsContainerType > &  RecvObjects 
)
virtual

◆ TransferObjects() [4/6]

bool Kratos::Communicator::TransferObjects ( std::vector< ElementsContainerType > &  SendObjects,
std::vector< ElementsContainerType > &  RecvObjects,
Kratos::Serializer particleSerializer 
)
virtual

◆ TransferObjects() [5/6]

bool Kratos::Communicator::TransferObjects ( std::vector< NodesContainerType > &  SendObjects,
std::vector< NodesContainerType > &  RecvObjects 
)
virtual

◆ TransferObjects() [6/6]

bool Kratos::Communicator::TransferObjects ( std::vector< NodesContainerType > &  SendObjects,
std::vector< NodesContainerType > &  RecvObjects,
Kratos::Serializer particleSerializer 
)
virtual

Member Data Documentation

◆ mGhostMeshes

MeshesContainerType Kratos::Communicator::mGhostMeshes
protected

◆ mInterfaceMeshes

MeshesContainerType Kratos::Communicator::mInterfaceMeshes
protected

◆ mLocalMeshes

MeshesContainerType Kratos::Communicator::mLocalMeshes
protected

◆ mNeighbourIndices

NeighbourIndicesContainerType Kratos::Communicator::mNeighbourIndices
protected

◆ mNumberOfColors

SizeType Kratos::Communicator::mNumberOfColors
protected

◆ mpGhostMesh

MeshType::Pointer Kratos::Communicator::mpGhostMesh
protected

◆ mpInterfaceMesh

MeshType::Pointer Kratos::Communicator::mpInterfaceMesh
protected

◆ mpLocalMesh

MeshType::Pointer Kratos::Communicator::mpLocalMesh
protected

◆ mrDataCommunicator

const DataCommunicator& Kratos::Communicator::mrDataCommunicator
protected

The documentation for this class was generated from the following files: