Celeritas 0.6.0-rc.2.10+develop.de0a3a05
|
Construct a generic grid using mutable host data and add it to the specified grid collection. More...
#include <NonuniformGridInserter.hh>
Public Types | |
Type aliases | |
using | SpanConstFlt = Span< float const > |
using | SpanConstDbl = Span< double const > |
using | Values = Collection< real_type, Ownership::value, MemSpace::host > |
using | GridValues = Collection< NonuniformGridRecord, Ownership::value, MemSpace::host, Index > |
Public Member Functions | |
NonuniformGridInserter (Values *reals, GridValues *grids) | |
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. | |
Index | operator() () |
Add an empty grid. | |
Construct a generic grid using mutable host data and add it to the specified grid collection.
auto celeritas::NonuniformGridInserter< Index >::operator() | ( | ) |
Add an empty grid.
Useful for when there's no imported grid present for a given material.
auto celeritas::NonuniformGridInserter< 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.