packages/MC/mc/test/TransporterTestBase.cc
//---------------------------------------------------------------------------//
//! Initialization that are performed for each test
Initialization that are performed for each test
Initialization that are performed for each test
void TransporterTestBase::SetUp()
{
    rcon = std::make_shared<profugus::RNG_Control>(349832);
    node  = profugus::node();
    nodes = profugus::nodes();
    this->init_group_bounds();
    CHECK(group_bounds);
    this->init_db();
    CHECK(!db.is_null());
    this->init_geometry();
    CHECK(geometry);
    this->init_physics();
    CHECK(physics);
    physics->set_geometry(geometry);
    this->init_vr();
    CHECK(var_red);
    var_red->set(geometry);
    var_red->set(physics);
    tallier = std::make_shared<Tallier_t>();
    tallier->set(geometry, physics);
    this->init_tallies();
    ENSURE(rcon);
    ENSURE(!db.is_null());
    ENSURE(geometry);
    ENSURE(physics);
    ENSURE(group_bounds);
    ENSURE(var_red);
    ENSURE(tallier);
}
void TransporterTestBase :: SetUp ( ) { rcon = std :: make_shared < profugus :: RNG_Control > ( 349832 ) ; node = profugus :: node ( ) ; nodes = profugus :: nodes ( ) ; this -> init_group_bounds ( ) ; CHECK ( group_bounds ) ; this -> init_db ( ) ; CHECK ( ! db . is_null ( ) ) ; this -> init_geometry ( ) ; CHECK ( geometry ) ; this -> init_physics ( ) ; CHECK ( physics ) ; physics -> set_geometry ( geometry ) ; this -> init_vr ( ) ; CHECK ( var_red ) ; var_red -> set ( geometry ) ; var_red -> set ( physics ) ; tallier = std :: make_shared < Tallier_t > ( ) ; tallier -> set ( geometry , physics ) ; this -> init_tallies ( ) ; ENSURE ( rcon ) ; ENSURE ( ! db . is_null ( ) ) ; ENSURE ( geometry ) ; ENSURE ( physics ) ; ENSURE ( group_bounds ) ; ENSURE ( var_red ) ; ENSURE ( tallier ) ; }
Initialization that are performed for each test
Initialization that are performed for each test
// set number of nodes // Create VR // Create tallier