111 SizeType NumberOfPartitions,
int Dimension = 3)
163 int number_of_nodes = 0;
164 int real_r_of_nodes = 0;
167 for(IO::ConnectivitiesContainerType::value_type::iterator i_node_id = i_element->begin() ; i_node_id != i_element->end() ; i_node_id++)
169 if(
static_cast<int>(*i_node_id) > number_of_nodes)
170 number_of_nodes = *i_node_id;
176 std::vector< bool > aux(number_of_nodes,
false);
179 for(IO::ConnectivitiesContainerType::value_type::iterator i_node_id = i_element->begin() ; i_node_id != i_element->end() ; i_node_id++)
181 aux[
static_cast<int>(*i_node_id)-1] =
true;
211 std::string
Info()
const override
213 return "MortonPartitioningProcess";
219 rOStream <<
"MortonPartitioningProcess";
263 for(
SizeType i_element = 0 ; i_element < NumberOfElements ; i_element++)
356 rOStream << std::endl;
std::vector< std::vector< std::size_t > > ConnectivitiesContainerType
Definition: io.h:91
Short class definition.
Definition: morton_partitioning_process.h:88
std::string Info() const override
Turn back information as a string.
Definition: morton_partitioning_process.h:211
IO::NodesContainerType & mrNodesContainer
Definition: morton_partitioning_process.h:245
SizeType mDimension
Definition: morton_partitioning_process.h:249
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: morton_partitioning_process.h:217
KRATOS_CLASS_POINTER_DEFINITION(MortonPartitioningProcess)
Pointer definition of MortonPartitioningProcess.
MortonPartitioningProcess(MortonPartitioningProcess const &rOther)
Copy constructor.
Definition: morton_partitioning_process.h:122
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: morton_partitioning_process.h:223
std::vector< idxtype > PartitionIndicesType
Definition: morton_partitioning_process.h:100
IO::ConnectivitiesContainerType & mrElementsConnectivities
Definition: morton_partitioning_process.h:244
idx_t idxtype
Definition: morton_partitioning_process.h:93
MortonPartitioningProcess(IO::ConnectivitiesContainerType &rElementsConnectivities, IO::NodesContainerType &rNodesContainer, PartitionIndicesType &rNodesPartitions, PartitionIndicesType &rElementsPartitions, SizeType NumberOfPartitions, int Dimension=3)
Default constructor.
Definition: morton_partitioning_process.h:107
std::size_t IndexType
Definition: morton_partitioning_process.h:99
PartitionIndicesType & mrElementsPartitions
Definition: morton_partitioning_process.h:247
SizeType mNumberOfPartitions
Definition: morton_partitioning_process.h:248
void AssignPartition(SizeType NumberOfNodes, SizeType NumberOfElements, idxtype *NPart, idxtype *EPart)
Definition: morton_partitioning_process.h:261
std::size_t SizeType
Definition: morton_partitioning_process.h:98
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: morton_partitioning_process.h:152
virtual ~MortonPartitioningProcess()
Destructor.
Definition: morton_partitioning_process.h:133
void operator()()
Definition: morton_partitioning_process.h:142
PartitionIndicesType & mrNodesPartitions
Definition: morton_partitioning_process.h:246
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
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