Celeritas 0.7+28f01d9
Loading...
Searching...
No Matches
Static Public Attributes | Protected Member Functions | List of all members
celeritas::test::StressVolumeTestBase Class Reference

Base for stress tests with a uniform tree of configurable depth and width. More...

#include <VolumeTestBase.hh>

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

Static Public Attributes

static constexpr unsigned int num_levels_ {4}
 
static constexpr unsigned int num_children_ {1024}
 
- Static Public Attributes inherited from celeritas::test::Test
static constexpr double inf = HUGE_VAL
 
static constexpr float inff = HUGE_VALF
 
static constexpr double fine_eps = 1e-12
 
static constexpr double coarse_eps = 1e-6
 

Protected Member Functions

std::shared_ptr< VolumeParamsbuild_volumes () const override
 

Additional Inherited Members

- Public Member Functions inherited from celeritas::test::VolumeTestBase
void SetUp () override
 
VolumeParams constvolumes () const
 
- Public Member Functions inherited from celeritas::test::Test
virtual std::string make_unique_filename (std::string_view ext)
 Generate test-unique filename.
 
std::string make_unique_filename ()
 
- 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}.
 
static bool strict_testing ()
 True if strict testing is required.
 

Detailed Description

Base for stress tests with a uniform tree of configurable depth and width.

The volume hierarchy is a regular tree: each non-leaf volume has exactly num_children child instances pointing one level down, plus one additional instance pointing two levels down (a "skip" child) when the volume is at least two levels above the leaves. There is one logical volume per depth level (level 0 = world, level depth-1 = leaf), for a total of depth volumes, (depth-1)*num_children regular instances, and (depth-2) skip instances.

Regular instance labels use Label{"X->Y", "N"} where X and Y are depth labels and N is the sibling index (0 to num_children-1). Skip instance labels use Label{"X->Z", "0"} where Z is two levels below X.

Member Function Documentation

◆ build_volumes()

std::shared_ptr< VolumeParams > celeritas::test::StressVolumeTestBase::build_volumes ( ) const
overrideprotectedvirtual

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