Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::ValueGridInserter Class Reference

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.
 

Detailed Description

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.

ValueGridInserter insert(&data.host.values, &data.host.grids);
insert(uniform_grid, values);
store.push_back(host_ptrs);
store.copy_to_device();
ValueGridInserter(RealCollection *real_data, XsGridCollection *xs_grid)
Construct with a reference to mutable host data.
Definition: ValueGridInserter.cc:20

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