Celeritas  0.5.0-86+4a8eea4
Classes | Namespaces | Macros | Functions
ValidationUtils.hh File Reference
#include <array>
#include <vector>
#include "corecel/cont/Array.hh"
#include "corecel/cont/Span.hh"
#include "corecel/data/Collection.hh"
#include "celeritas/UnitTypes.hh"
#include "celeritas/grid/GenericGridData.hh"
#include "celeritas/io/ImportPhysicsVector.hh"
#include "celeritas/optical/MfpBuilder.hh"
#include "Test.hh"
#include "TestMacros.hh"
#include "detail/ValidationUtilsImpl.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::optical::test::GridAccessor
 Convenience class for accessing data built on the grid, and performing sanity checks on bounds. More...
 
class  celeritas::optical::test::OwningGridAccessor
 A GridAccessor that stores its own collections. More...
 

Namespaces

 celeritas::optical
 Physics classes used inside the optical physics loop.
 

Macros

#define EXPECT_GRID_EQ(expected, actual)    EXPECT_PRED_FORMAT2(::celeritas::testdetail::IsGridEq, expected, actual)
 Equivalence macro for physics grids.
 
#define EXPECT_TABLE_EQ(expected, actual)    EXPECT_PRED_FORMAT2(::celeritas::testdetail::IsTableEq, expected, actual)
 Equivalence macro for physics tables (vectors of grids)
 

Functions

template<class UnitType , class... Args>
constexpr Array< real_type, sizeof...(Args)> celeritas::optical::test::native_array_from (Args const &... args)
 Helper function to annotate units of a hard-coded test data array. More...
 
template<class UnitType , class... Args>
std::vector< real_type > celeritas::optical::test::native_vector_from (Args const &... args)
 Helper function to annotate units of hard-coded test data. More...
 

Function Documentation

◆ native_array_from()

template<class UnitType , class... Args>
constexpr Array<real_type, sizeof...(Args)> celeritas::optical::test::native_array_from ( Args const &...  args)
constexpr

Helper function to annotate units of a hard-coded test data array.

Converts the arguments supplied in units UnitType to native units.

◆ native_vector_from()

template<class UnitType , class... Args>
std::vector<real_type> celeritas::optical::test::native_vector_from ( Args const &...  args)

Helper function to annotate units of hard-coded test data.

Same as native_array_from, except returns a vector.