dataTests Namespace Reference

Convenience functions used in data tests. More...

Functions

std::shared_ptr< Origen::Solverdetermine_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
cmdLineThe 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 
)

Sets the materials based on what is on the ft71 data.

Parameters
matThe material that will be set to the ft71 concentrations.
ft71_dataThe ft71 file data.
libThe library that the material will be initialized with.

Referenced by TEST(), and TEST_P().

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
matThe material that will be set.
libThe library that the material will be initialized with.
paramThe string with the name of the isotope to be used.

Referenced by TEST_P().

bool get_data_path ( std::string &  data_path)

Gets the path to the Scale data from the environment variable DATA.

Parameters
data_pathWill be set to the path to Scale data if it exists.
Returns
Whether or not the DATA environment variable was found.

Referenced by TEST(), and TEST_P().