OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
BunchStateHandler::ContainerState Struct Reference

Per-container slot of mutable flags. One per registered ParticleContainer. Lifetime is tied to the owning container (see registerContainer() for details). More...

#include <BunchStateHandler.h>

Collaboration diagram for BunchStateHandler::ContainerState:
Collaboration graph

Public Member Functions

void setUnitlessPositions (bool v)
 
void markMomentsDirty ()
 
void markMomentsClean ()
 

Public Attributes

bool unitlessPositions = false
 
bool momentsDirty = true
 

Detailed Description

Per-container slot of mutable flags. One per registered ParticleContainer. Lifetime is tied to the owning container (see registerContainer() for details).

Setters here own the MPI consistency logic directly; there is no need to route back through the handler, because Options::aggressiveStateSync is a namespace flag and ippl::Comm is a singleton - i.e. the allreduce helper is stateless, so the struct can call it without holding any handler reference.

Definition at line 69 of file BunchStateHandler.h.

Member Function Documentation

◆ markMomentsClean()

void BunchStateHandler::ContainerState::markMomentsClean ( )

Definition at line 30 of file BunchStateHandler.cpp.

References Options::aggressiveStateSync.

◆ markMomentsDirty()

void BunchStateHandler::ContainerState::markMomentsDirty ( )

Definition at line 26 of file BunchStateHandler.cpp.

References Options::aggressiveStateSync.

◆ setUnitlessPositions()

void BunchStateHandler::ContainerState::setUnitlessPositions ( bool  v)

Definition at line 22 of file BunchStateHandler.cpp.

References Options::aggressiveStateSync, and unitlessPositions.

Member Data Documentation

◆ momentsDirty

bool BunchStateHandler::ContainerState::momentsDirty = true

Definition at line 71 of file BunchStateHandler.h.

◆ unitlessPositions

bool BunchStateHandler::ContainerState::unitlessPositions = false

Definition at line 70 of file BunchStateHandler.h.

Referenced by setUnitlessPositions().


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