Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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 Values = Collection< real_type, Ownership::value, MemSpace::host >
 
using GridValues = Collection< XsGridData, Ownership::value, MemSpace::host >
 
using SpanConstDbl = Span< double const >
 
using SpanConstFlt = Span< float const >
 
using XsIndex = ItemId< XsGridData >
 

Public Member Functions

 ValueGridInserter (Values *reals, GridValues *grids)
 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, size_type prime_index, SpanConstFlt 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.
 
XsIndex operator() (UniformGridData const &log_grid, SpanConstFlt values)
 Add a grid of log-spaced data without 1/E scaling.
 
template<class T >
auto insert_xs (UniformGridData const &log_grid, size_type prime_index, Span< T const > values) -> XsIndex
 Add a grid of physics xs data.
 

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();
Manage data and help construction of physics value grids.
Definition ValueGridInserter.hh:40

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