Celeritas 0.6.0-2+develop.96611fab
|
Construct a nonuniform grid and add it to the specified grid collection. More...
#include <NonuniformGridInserter.hh>
Public Types | |
Type aliases | |
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() (inp::Grid const &) |
Add a nonuniform grid to the collection. | |
Index | operator() () |
Add an empty grid. | |
Construct a nonuniform grid 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() | ( | inp::Grid const & | grid | ) |
Add a nonuniform grid to the collection.
Returns the ID of the inserted grid, or an empty ID if the vector is empty.