dataTests Namespace Reference
Convenience functions used in data tests. More...
Functions | |
std::shared_ptr< Origen::Solver > | determine_solver (Standard::CommandLine *cmdLine) |
Origen::SP_Material | set_materials_using_f71_file (Origen::SP_StateSet ft71_data, Origen::SP_Library lib) |
Origen::SP_Material | set_materials_given_id (Origen::SP_Library lib, std::string param) |
bool | get_data_path (std::string &data_path) |
Detailed Description
Convenience functions used in data tests.
Function Documentation
std::shared_ptr< Origen::Solver > determine_solver | ( | Standard::CommandLine * | cmdLine | ) |
Determines the solver to use based on command parameters.
- Parameters
-
cmdLine The command line to process.
- Returns
- A shared pointer to the solver.
Referenced by decay_compare::decay_compare(), and yields_compare::yields_compare().
Origen::SP_Material set_materials_using_f71_file | ( | Origen::SP_StateSet | ft71_data, |
Origen::SP_Library | lib | ||
) |
Origen::SP_Material set_materials_given_id | ( | Origen::SP_Library | lib, |
std::string | param | ||
) |
Sets a material to have 1.0 number density of one isotope.
- Parameters
-
mat The material that will be set. lib The library that the material will be initialized with. param The string with the name of the isotope to be used.
Referenced by TEST_P().