Celeritas 0.6.0-2+develop.96611fab
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::NonuniformGridInserter< Index > Class Template Reference

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.
 

Detailed Description

template<class Index>
class celeritas::NonuniformGridInserter< Index >

Construct a nonuniform grid and add it to the specified grid collection.

Member Function Documentation

◆ operator()() [1/2]

template<class Index >
auto celeritas::NonuniformGridInserter< Index >::operator() ( )

Add an empty grid.

Useful for when there's no imported grid present for a given material.

◆ operator()() [2/2]

template<class Index >
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.


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