Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::test::CalculatorTestBase Class Reference

Test harness base class for interpolating values on grids. More...

#include <CalculatorTestBase.hh>

Inheritance diagram for celeritas::test::CalculatorTestBase:
Inheritance graph
[legend]

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
 

Detailed Description

Test harness base class for interpolating values on grids.

Member Typedef Documentation

◆ Data

Deprecated: use the "build" (with function) and "convert_to_prime"

◆ Real2

Deprecated: use the "build" (with function) and "convert_to_prime"

◆ SpanReal

Deprecated: use the "build" (with function) and "convert_to_prime"

◆ Values

Deprecated: use the "build" (with function) and "convert_to_prime"

◆ XsFunc

Deprecated: use the "build" (with function) and "convert_to_prime"

Member Function Documentation

◆ build()

void celeritas::test::CalculatorTestBase::build ( real_type  emin,
real_type  emax,
size_type  count 
)

Deprecated: use the "build" (with function) and "convert_to_prime"

◆ mutable_values()

SpanReal celeritas::test::CalculatorTestBase::mutable_values ( )

Deprecated: use the "build" (with function) and "convert_to_prime"

◆ set_prime_index()

void celeritas::test::CalculatorTestBase::set_prime_index ( size_type  i)

Deprecated: use the "build" (with function) and "convert_to_prime"


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