Celeritas
0.5.0-56+6b053cd
|
Construct a generic grid using mutable host data and add it to the specified grid collection. More...
#include <GenericGridInserter.hh>
Public Types | |
Type aliases | |
using | SpanConstFlt = Span< float const > |
using | SpanConstDbl = Span< double const > |
using | RealCollection = Collection< real_type, Ownership::value, MemSpace::host > |
using | GenericGridCollection = Collection< GenericGridRecord, Ownership::value, MemSpace::host, Index > |
Public Member Functions | |
GenericGridInserter (RealCollection *real_data, GenericGridCollection *grid) | |
Construct with a reference to mutable host data. | |
Index | operator() (SpanConstFlt grid, SpanConstFlt values) |
Add a grid of generic data with linear interpolation to the collection. | |
Index | operator() (SpanConstDbl grid, SpanConstDbl values) |
Add a grid of generic data with linear interpolation to the collection. | |
Index | operator() (ImportPhysicsVector const &vec) |
Add an imported physics vector as a generic grid to the collection. More... | |
Index | operator() () |
Add an empty grid. More... | |
Construct a generic grid using mutable host data and add it to the specified grid collection.
auto celeritas::GenericGridInserter< Index >::operator() |
Add an empty grid.
Useful for when there's no imported grid present for a given material.
auto celeritas::GenericGridInserter< Index >::operator() | ( | ImportPhysicsVector const & | vec | ) |
Add an imported physics vector as a generic grid to the collection.
Returns the id of the inserted grid, or an empty id if the vector is empty.