13 #ifndef KRATOS_MODEL_PART_COMMUNICATOR_UTILITIES_H_INCLUDED
14 #define KRATOS_MODEL_PART_COMMUNICATOR_UTILITIES_H_INCLUDED
68 rThisModelPart.
SetCommunicator(Kratos::make_shared<MPICommunicator>(p_variables_list, rDataCommunicator));
87 VariablesList * p_variables_list = &rThisModelPart.GetNodalSolutionStepVariablesList();
Serial (do-nothing) version of a wrapper class for MPI communication.
Definition: data_communicator.h:318
static DataCommunicator & GetDefault()
Convenience function to retrieve the current default DataCommunicator.
Definition: data_communicator.cpp:18
virtual bool IsDistributed() const
Check whether this DataCommunicator is aware of parallelism.
Definition: data_communicator.h:606
Utilitiy class for ModelPart::Comunicator management in an MPI context.
Definition: model_part_communicator_utilities.h:36
ModelPartCommunicatorUtilities(const ModelPartCommunicatorUtilities &rOther)=delete
Deleted copy constructor.
static void SetMPICommunicatorRecursively(ModelPart &rThisModelPart, const DataCommunicator &rDataCommunicator)
Create and assign an MPICommunicator for a ModelPart instance and its SubModelParts.
Definition: model_part_communicator_utilities.h:77
KRATOS_CLASS_POINTER_DEFINITION(ModelPartCommunicatorUtilities)
Pointer definition of ModelPartCommunicatorUtilities.
static void SetMPICommunicator(ModelPart &rThisModelPart, const DataCommunicator &rDataCommunicator)
Create and assign an MPICommunicator for a ModelPart instance.
Definition: model_part_communicator_utilities.h:64
ModelPartCommunicatorUtilities()=delete
Deleted default constructor.
KRATOS_DEPRECATED_MESSAGE("This function is deprecated, please use the one that accepts a DataCommunicator") static inline void SetMPICommunicator(ModelPart &rThisModelPart)
Definition: model_part_communicator_utilities.h:85
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
void SetCommunicator(Communicator::Pointer pNewCommunicator)
Definition: model_part.h:1836
SubModelPartsContainerType & SubModelParts()
Definition: model_part.h:1718
VariablesList & GetNodalSolutionStepVariablesList()
Definition: model_part.h:549
Holds a list of variables and their position in VariablesListDataValueContainer.
Definition: variables_list.h:50
#define KRATOS_ERROR_IF_NOT(conditional)
Definition: exception.h:163
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21