Celeritas
0.5.0-56+6b053cd
|
Manage data and help construction of physics value grids. More...
#include <ValueGridInserter.hh>
Public Types | |
Type aliases | |
using | RealCollection = Collection< real_type, Ownership::value, MemSpace::host > |
using | XsGridCollection = Collection< XsGridData, Ownership::value, MemSpace::host > |
using | SpanConstDbl = Span< double const > |
using | XsIndex = ItemId< XsGridData > |
Public Member Functions | |
ValueGridInserter (RealCollection *real_data, XsGridCollection *xs_grid) | |
Construct with a reference to mutable host data. | |
XsIndex | operator() (UniformGridData const &log_grid, size_type prime_index, SpanConstDbl values) |
Add a grid of physics xs data. | |
XsIndex | operator() (UniformGridData const &log_grid, SpanConstDbl values) |
Add a grid of log-spaced data without 1/E scaling. | |
Manage data and help construction of physics value grids.
Currently this only constructs a single value grid datatype, the XsGridData, but with this framework (virtual ValueGridXsBuilder::build
method taking an instance of this class) it can be extended to build additional grid types as well.