Celeritas
0.5.0-86+4a8eea4
|
Test harness base class for interpolating values on grids. More...
#include <CalculatorTestBase.hh>
Public Member Functions | |
void | build (Real2 bounds, size_type count, XsFunc calc_xs) |
void | convert_to_prime (size_type i) |
XsGridData const & | data () const |
Data const & | values () const |
Public Member Functions inherited from celeritas::test::Test | |
std::string | make_unique_filename (std::string_view ext={}) |
Generate test-unique filename. | |
Type aliases | |
using | Values = Collection< real_type, Ownership::value, MemSpace::host > |
using | Data = Collection< real_type, Ownership::const_reference, MemSpace::host > |
using | SpanReal = Span< real_type > |
using | XsFunc = std::function< real_type(real_type)> |
using | Real2 = Array< real_type, 2 > |
void | build (real_type emin, real_type emax, size_type count) |
void | set_prime_index (size_type i) |
SpanReal | mutable_values () |
Additional Inherited Members | |
Static Public Member Functions inherited from celeritas::test::Test | |
static std::string | test_data_path (std::string_view subdir, std::string_view filename) |
Get the path to a test file at {source}/test/{subdir}/data/{filename} . More... | |
static std::string | genericize_pointers (std::string_view s) |
Replace pointer addresses with 0x0 for improved testability. | |
static bool | strict_testing () |
True if strict testing is required. More... | |
Static Public Attributes inherited from celeritas::test::Test | |
static constexpr double | inf = HUGE_VAL |
static constexpr float | inff = HUGE_VALF |
static constexpr double | coarse_eps = 1e-6 |
Test harness base class for interpolating values on grids.
using celeritas::test::CalculatorTestBase::Data = Collection<real_type, Ownership::const_reference, MemSpace::host> |
Deprecated: use the "build" (with function) and "convert_to_prime"
using celeritas::test::CalculatorTestBase::Real2 = Array<real_type, 2> |
Deprecated: use the "build" (with function) and "convert_to_prime"
Deprecated: use the "build" (with function) and "convert_to_prime"
using celeritas::test::CalculatorTestBase::Values = Collection<real_type, Ownership::value, MemSpace::host> |
Deprecated: use the "build" (with function) and "convert_to_prime"
using celeritas::test::CalculatorTestBase::XsFunc = std::function<real_type(real_type)> |
Deprecated: use the "build" (with function) and "convert_to_prime"
Deprecated: use the "build" (with function) and "convert_to_prime"
SpanReal celeritas::test::CalculatorTestBase::mutable_values | ( | ) |
Deprecated: use the "build" (with function) and "convert_to_prime"
void celeritas::test::CalculatorTestBase::set_prime_index | ( | size_type | i | ) |
Deprecated: use the "build" (with function) and "convert_to_prime"