102 const int GatherRank,
119 void GatherOnMaster();
125 template <
class TDataType>
132 template <
class TDataType>
145 static void GatherEntitiesFromOtherPartitions(
147 const std::map<
int, std::vector<std::size_t>>& rNodesToBring,
148 const std::map<
int, std::vector<std::size_t>>& rElementsToBring,
149 const std::map<
int, std::vector<std::size_t>>& rConditionsToBring,
150 const bool CallExecuteAfterBringingEntities =
true,
162 static void GatherNodesFromOtherPartitions(
164 const std::map<
int, std::vector<std::size_t>>& rNodesToBring,
165 const bool CallExecuteAfterBringingEntities =
true,
177 static void GatherElementsFromOtherPartitions(
179 const std::map<
int, std::vector<std::size_t>>& rElementsToBring,
180 const bool CallExecuteAfterBringingEntities =
true,
192 static void GatherConditionsFromOtherPartitions(
194 const std::map<
int, std::vector<std::size_t>>& rConditionsToBring,
195 const bool CallExecuteAfterBringingEntities =
true,
212 std::string
Info()
const;
215 void PrintInfo(std::ostream& rOStream)
const;
218 void PrintData(std::ostream& rOStream)
const;
251 template <
class TObjectType>
252 static void GatherEntityFromOtherPartitions(
254 const std::map<
int, std::vector<std::size_t>>& rEntitiesToBring,
307 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Definition: gather_modelpart_utility.h:56
ModelPart::NodesContainerType NodesContainerType
Nodes container definition.
Definition: gather_modelpart_utility.h:62
ModelPart::ElementsContainerType ElementsContainerType
Elements container definition.
Definition: gather_modelpart_utility.h:65
ModelPart::ConditionsContainerType ConditionsContainerType
Conditions container definition.
Definition: gather_modelpart_utility.h:68
void ScatterFromMaster(const Variable< TDataType > &rVariable)
The function scatters the model part from the master rank to the other ranks.
Definition: gather_modelpart_utility.cpp:166
GatherModelPartUtility(const int GatherRank, ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart)
Default constructor.
Definition: gather_modelpart_utility.h:84
void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: gather_modelpart_utility.cpp:471
void GatherOnMaster()
This function gathers the model part on the master rank.
Definition: gather_modelpart_utility.cpp:150
void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: gather_modelpart_utility.cpp:476
KRATOS_CLASS_POINTER_DEFINITION(GatherModelPartUtility)
Pointer definition of GatherModelPartUtility.
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
static int EchoLevel
Definition: co_sim_EMPIRE_API.h:42
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432