peclet-dem 1.1.0
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
peclet::dem::ColoringInvariant Struct Reference

The colouring invariant (§4.2 item 4, §12 S3): the failing phase's edges, the accumulated message, and whether the distributed vote is still owed. More...

#include <solve_driver.hpp>

Public Member Functions

void note (const char *phase, Kokkos::View< const int *, CpMem > color, int n, Kokkos::View< const int *, CpMem > vertexDegree)
template<class Hooks>
void seal ()
template<class Hooks>
float vote (const Hooks &hooks, float res)

Public Attributes

Kokkos::View< int *, CpMem > edgeA
Kokkos::View< int *, CpMem > edgeB
std::string msg
bool pending = false

Detailed Description

The colouring invariant (§4.2 item 4, §12 S3): the failing phase's edges, the accumulated message, and whether the distributed vote is still owed.

A single rank throws at seal(); the distributed step throws inside the first stop vote, on every rank.

Definition at line 292 of file solve_driver.hpp.

Member Function Documentation

◆ note()

void peclet::dem::ColoringInvariant::note ( const char * phase,
Kokkos::View< const int *, CpMem > color,
int n,
Kokkos::View< const int *, CpMem > vertexDegree )
inline

◆ seal()

template<class Hooks>
void peclet::dem::ColoringInvariant::seal ( )
inline

Definition at line 327 of file solve_driver.hpp.

References msg, and pending.

Referenced by peclet::dem::demSolveContacts().

◆ vote()

template<class Hooks>
float peclet::dem::ColoringInvariant::vote ( const Hooks & hooks,
float res )
inline

Definition at line 336 of file solve_driver.hpp.

References msg, and pending.

Referenced by peclet::dem::runOverlapProjection(), and peclet::dem::solveVelocityPhase().

Member Data Documentation

◆ edgeA

Kokkos::View<int*, CpMem> peclet::dem::ColoringInvariant::edgeA

◆ edgeB

Kokkos::View<int*, CpMem> peclet::dem::ColoringInvariant::edgeB

◆ msg

std::string peclet::dem::ColoringInvariant::msg

Definition at line 294 of file solve_driver.hpp.

Referenced by note(), seal(), and vote().

◆ pending

bool peclet::dem::ColoringInvariant::pending = false

Definition at line 295 of file solve_driver.hpp.

Referenced by seal(), and vote().


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