OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
BinningTest Class Reference

Inherits testing::Test.

Collaboration diagram for BinningTest:
Collaboration graph

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void createParticles (size_t n)
 Creates n particles with random P values in [0.1, 0.9] and R in mesh interior.
 
void createParticlesUniformP (size_t n, int axis, TestT pMin, TestT pMax)
 Creates n particles where P[axis] is uniformly spread in [pMin, pMax].
 
void buildAdaptBins (bin_index_type maxBins=5, value_type alpha=1.0, value_type beta=1.0, value_type desW=0.1, const std::string &binningCmdName="TEST_BINNING_CMD")
 Build an AdaptBins with given parameters.
 

Static Protected Member Functions

static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 

Protected Attributes

std::unique_ptr< TestMesh_tmesh
 
std::unique_ptr< TestFL_tfl
 
std::unique_ptr< TestPLayout_tplayout
 
std::shared_ptr< Container_tbunch
 
std::shared_ptr< AdaptBins_tadaptBins
 

Static Protected Attributes

static constexpr size_t gridPoints = 32
 
static constexpr TestT domainLen = 1.0
 

Detailed Description

Definition at line 100 of file TestBinning.cpp.

Member Function Documentation

◆ buildAdaptBins()

void BinningTest::buildAdaptBins ( bin_index_type  maxBins = 5,
value_type  alpha = 1.0,
value_type  beta = 1.0,
value_type  desW = 0.1,
const std::string &  binningCmdName = "TEST_BINNING_CMD" 
)
inlineprotected

Build an AdaptBins with given parameters.

Definition at line 203 of file TestBinning.cpp.

References adaptBins, and bunch.

◆ createParticles()

void BinningTest::createParticles ( size_t  n)
inlineprotected

Creates n particles with random P values in [0.1, 0.9] and R in mesh interior.

Definition at line 152 of file TestBinning.cpp.

References bunch, and TestDim.

◆ createParticlesUniformP()

void BinningTest::createParticlesUniformP ( size_t  n,
int  axis,
TestT  pMin,
TestT  pMax 
)
inlineprotected

Creates n particles where P[axis] is uniformly spread in [pMin, pMax].

Definition at line 177 of file TestBinning.cpp.

References bunch, and TestDim.

◆ SetUp()

void BinningTest::SetUp ( )
inlineoverrideprotected

Definition at line 121 of file TestBinning.cpp.

References bunch, domainLen, fl, gridPoints, mesh, playout, and TestDim.

◆ SetUpTestSuite()

static void BinningTest::SetUpTestSuite ( )
inlinestaticprotected

Definition at line 102 of file TestBinning.cpp.

◆ TearDown()

void BinningTest::TearDown ( )
inlineoverrideprotected

Definition at line 142 of file TestBinning.cpp.

References adaptBins, bunch, fl, mesh, and playout.

◆ TearDownTestSuite()

static void BinningTest::TearDownTestSuite ( )
inlinestaticprotected

Definition at line 108 of file TestBinning.cpp.

Member Data Documentation

◆ adaptBins

std::shared_ptr<AdaptBins_t> BinningTest::adaptBins
protected

Definition at line 115 of file TestBinning.cpp.

Referenced by buildAdaptBins(), and TearDown().

◆ bunch

std::shared_ptr<Container_t> BinningTest::bunch
protected

◆ domainLen

constexpr TestT BinningTest::domainLen = 1.0
staticconstexprprotected

Definition at line 119 of file TestBinning.cpp.

Referenced by SetUp().

◆ fl

std::unique_ptr<TestFL_t> BinningTest::fl
protected

Definition at line 112 of file TestBinning.cpp.

Referenced by SetUp(), and TearDown().

◆ gridPoints

constexpr size_t BinningTest::gridPoints = 32
staticconstexprprotected

Definition at line 118 of file TestBinning.cpp.

Referenced by SetUp().

◆ mesh

std::unique_ptr<TestMesh_t> BinningTest::mesh
protected

Definition at line 111 of file TestBinning.cpp.

Referenced by SetUp(), and TearDown().

◆ playout

std::unique_ptr<TestPLayout_t> BinningTest::playout
protected

Definition at line 113 of file TestBinning.cpp.

Referenced by SetUp(), and TearDown().


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