https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Moose::MFEM::DistributedEdge Struct Reference

An undirected edge of the distributed vertex graph. More...

#include <MFEMDistributedGraph.h>

Public Member Functions

bool operator< (const DistributedEdge &o) const
 Total order on the (unique) weights, giving Kruskal's processing order.
 

Public Attributes

std::int64_t wu
 Weight: original canonical endpoint ids, wu < wv. Unique across the graph.
 
std::int64_t wv
 
std::int64_t u
 Current component label of each endpoint.
 
std::int64_t v
 
int origin_rank
 Rank that owns this edge and its index in that rank's edge array, so a selected edge can be routed back to the rank that has to act on it.
 
int origin_index
 

Detailed Description

An undirected edge of the distributed vertex graph.

The weight is the pair of original canonical vertex ids and never changes; it defines the total edge order that makes the resulting spanning forest independent of the partitioning. The endpoints are the current component labels and are rewritten as components merge.

Definition at line 123 of file MFEMDistributedGraph.h.

Member Function Documentation

◆ operator<()

bool Moose::MFEM::DistributedEdge::operator< ( const DistributedEdge &  o) const
inline

Total order on the (unique) weights, giving Kruskal's processing order.

Definition at line 134 of file MFEMDistributedGraph.h.

134{ return (wu != o.wu) ? wu < o.wu : wv < o.wv; }
std::int64_t wu
Weight: original canonical endpoint ids, wu < wv. Unique across the graph.

Member Data Documentation

◆ origin_index

int Moose::MFEM::DistributedEdge::origin_index

Definition at line 131 of file MFEMDistributedGraph.h.

Referenced by Moose::MFEM::distributedSpanningForest().

◆ origin_rank

int Moose::MFEM::DistributedEdge::origin_rank

Rank that owns this edge and its index in that rank's edge array, so a selected edge can be routed back to the rank that has to act on it.

Definition at line 131 of file MFEMDistributedGraph.h.

Referenced by Moose::MFEM::distributedSpanningForest().

◆ u

std::int64_t Moose::MFEM::DistributedEdge::u

Current component label of each endpoint.

Definition at line 128 of file MFEMDistributedGraph.h.

Referenced by Moose::MFEM::distributedSpanningForest().

◆ v

std::int64_t Moose::MFEM::DistributedEdge::v

Definition at line 128 of file MFEMDistributedGraph.h.

Referenced by Moose::MFEM::distributedSpanningForest().

◆ wu

std::int64_t Moose::MFEM::DistributedEdge::wu

Weight: original canonical endpoint ids, wu < wv. Unique across the graph.

Definition at line 126 of file MFEMDistributedGraph.h.

Referenced by Moose::MFEM::distributedSpanningForest(), and operator<().

◆ wv

std::int64_t Moose::MFEM::DistributedEdge::wv

Definition at line 126 of file MFEMDistributedGraph.h.

Referenced by Moose::MFEM::distributedSpanningForest(), and operator<().


The documentation for this struct was generated from the following file: