packages/MC/mc/test/SourceTestBase.cc
//! Initialization that are performed for each test
Initialization that are performed for each test
Initialization that are performed for each test
void SourceTestBase::SetUp()
{
    b_rcon = std::make_shared<RNG_Control_t>(this->get_seed());
    node  = profugus::node();
    nodes = profugus::nodes();
    this->init_group_bounds();
    this->init_db();
    this->init_geometry();
    this->init_physics();
    CHECK(b_physics);
    CHECK(b_geometry);
    b_physics->set_geometry(b_geometry);
    ENSURE(b_rcon);
    ENSURE(!b_db.is_null());
    ENSURE(b_geometry);
    ENSURE(b_physics);
    ENSURE(b_group_bounds);
}
void SourceTestBase :: SetUp ( ) { b_rcon = std :: make_shared < RNG_Control_t > ( this -> get_seed ( ) ) ; node = profugus :: node ( ) ; nodes = profugus :: nodes ( ) ; this -> init_group_bounds ( ) ; this -> init_db ( ) ; this -> init_geometry ( ) ; this -> init_physics ( ) ; CHECK ( b_physics ) ; CHECK ( b_geometry ) ; b_physics -> set_geometry ( b_geometry ) ; ENSURE ( b_rcon ) ; ENSURE ( ! b_db . is_null ( ) ) ; ENSURE ( b_geometry ) ; ENSURE ( b_physics ) ; ENSURE ( b_group_bounds ) ; }
Initialization that are performed for each test
Initialization that are performed for each test
// set number of nodes // set our other attributes