ORB5X 1.0.0
Performance-portable global electromagnetic gyrokinetic PIC code
orb5x::PointerMarkersR4 Struct Reference

Owning single-precision diagnostic marker matrix. More...

#include "part.hpp"

Public Member Functions

void allocate (const std::string &label, int npmx, int nprops)
 Replace storage with npmx by nprops values.
 
Real32 & operator() (int ip, int prop)
 Access a mutable value by zero-based particle/property index.
 
const Real32 & operator() (int ip, int prop) const
 Access a value by zero-based particle/property index.
 
 PointerMarkersR4 ()=default
 Construct an empty wrapper.
 
 PointerMarkersR4 (const std::string &label, int npmx, int nprops)
 Allocate a named single-precision marker matrix.
 

Public Attributes

Kokkos::View< Real32 ** > markers
 Diagnostic values [capacity][property].
 

Detailed Description

Owning single-precision diagnostic marker matrix.

Constructor & Destructor Documentation

◆ PointerMarkersR4() [1/2]

orb5x::PointerMarkersR4::PointerMarkersR4 ( )
default

Construct an empty wrapper.

◆ PointerMarkersR4() [2/2]

orb5x::PointerMarkersR4::PointerMarkersR4 ( const std::string &  label,
int  npmx,
int  nprops 
)
inline

Allocate a named single-precision marker matrix.

Parameters
[in]labelKokkos allocation label used by profiling tools.
[in]npmxParticle capacity (first extent).
[in]npropsProperty-column count (second extent).

Member Function Documentation

◆ allocate()

void orb5x::PointerMarkersR4::allocate ( const std::string &  label,
int  npmx,
int  nprops 
)
inline

Replace storage with npmx by nprops values.

Parameters
[in]labelKokkos allocation label used by profiling tools.
[in]npmxParticle capacity.
[in]npropsProperty-column count.

References markers.

◆ operator()() [1/2]

Real32 & orb5x::PointerMarkersR4::operator() ( int  ip,
int  prop 
)
inline

Access a mutable value by zero-based particle/property index.

Parameters
[in]ipLocal particle index.
[in]propProperty-column index.
Returns
Reference to the selected single-precision value.

References markers.

◆ operator()() [2/2]

const Real32 & orb5x::PointerMarkersR4::operator() ( int  ip,
int  prop 
) const
inline

Access a value by zero-based particle/property index.

Parameters
[in]ipLocal particle index.
[in]propProperty-column index.
Returns
Const reference to the selected single-precision value.

References markers.

Member Data Documentation

◆ markers

Kokkos::View<Real32**> orb5x::PointerMarkersR4::markers

Diagnostic values [capacity][property].

Referenced by allocate(), operator()(), and operator()().


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