|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
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 for disabled models. | |
Construct a nonuniform grid and add it to the specified grid collection.
| auto celeritas::NonuniformGridInserter< Index >::operator() | ( | ) |
Add an empty grid for disabled models.
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.