Celeritas  0.5.0-56+6b053cd
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
celeritas::UniformGridData Struct Reference

Data input for a uniform increasing grid. More...

#include <UniformGridData.hh>

Public Types

using value_type = ::celeritas::real_type
 

Public Member Functions

CELER_FUNCTION operator bool () const
 True if assigned and valid.
 

Static Public Member Functions

static UniformGridData from_bounds (value_type front, value_type back, size_type size)
 Construct from min/max and number of grid points.
 

Public Attributes

size_type size {}
 Number of grid edges/points.
 
value_type front {}
 Value of first grid point.
 
value_type back {}
 Value of last grid point.
 
value_type delta {}
 Grid cell width.
 

Detailed Description

Data input for a uniform increasing grid.

The four parameters are overconstrained – we could omit back by calculating from the front, delta, and size. In practice, though, that can introduce an inconsistency into the "find" function.


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