Celeritas 0.6.0-dev.115+3b60a5fd
|
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 | build_spline (Real2 bounds, size_type count, XsFunc calc_xs, BC bc) |
void | convert_to_prime (size_type i) |
XsGridData const & | data () const |
Data const & | values () const |
![]() | |
std::string | make_unique_filename (std::string_view ext={}) |
Generate test-unique filename. | |
Type aliases | |
using | BC = SplineDerivCalculator::BoundaryCondition |
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 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} . | |
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. | |
![]() | |
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.
Deprecated: use the "build" (with function) and "convert_to_prime"
using celeritas::test::CalculatorTestBase::Data = Collection<real_type, Ownership::const_reference, MemSpace::host> |
Deprecated: use the "build" (with function) and "convert_to_prime"
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"
Deprecated: use the "build" (with function) and "convert_to_prime"