Celeritas 0.6.0-83+develop.60cd5c38
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::GeneratorCounters< T > Struct Template Reference

Current sizes of the buffered generator data. More...

#include <GeneratorCounters.hh>

Public Types

using size_type = T
 

Public Member Functions

CELER_FUNCTION bool empty () const
 True if any queued generators/tracks exist.
 

Public Attributes

size_type buffer_size {0}
 Number of generators.
 
size_type num_pending {0}
 Number of photons remaining to be generated.
 
size_type num_generated {0}
 Number of photons generated.
 

Detailed Description

template<class T = ::celeritas::size_type>
struct celeritas::GeneratorCounters< T >

Current sizes of the buffered generator data.

The number of pending and generated tracks are updated by value on the host at each core step. To allow accumulation over many steps which each may have many photons, the type is templated.


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