Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Testing framework utilities


Functions

void cps::staggered_local_pion (Lattice &lat, Float mass, IFloat *pion_corr, int time_size)
 Simple pseudoscalar correlator.
void cps::compare_array_relative (Float *pion_corr_A, Float *pion_corr_B, Float tol, int time_size)
 Comparison of two arrays.
void cps::compare_float_relative (Float pion_corr_A, Float pion_corr_B, Float tol)
 Comparison of two floating-point numbers.

Function Documentation

void cps::compare_array_relative Float pion_corr_A,
Float pion_corr_B,
Float  tol,
int  time_size
 

Comparison of two arrays.

Computes the relative difference between each number in the first array and the corresponding number in the second array. The differences are printed to stdout. If all differences are less than a specified tolerance, "test_result = PASS" is printed to stdout; otherwise "test_result = FAIL" is printed.

Parameters:
pion_corr_A An floating-point array
pion_corr_B Another floating-point array
tol The tolerance
time_size The length of the arrays

Definition at line 48 of file testing_framework_cmp.C.

References cps::MPISCU::printf().

void cps::compare_float_relative Float  pion_corr_A,
Float  pion_corr_B,
Float  tol
 

Comparison of two floating-point numbers.

Computes the relative difference between two numbers The difference is printed to stdout. If the difference is less than a specified tolerance, "test_result = PASS" is printed to stdout; otherwise "test_result = FAIL" is printed.

Parameters:
pion_corr_A An floating-point array
pion_corr_B Another floating-point array
tol The tolerance

Definition at line 102 of file testing_framework_cmp.C.

References cps::MPISCU::printf().

void cps::staggered_local_pion Lattice &  lat,
Float  mass,
IFloat pion_corr,
int  time_size
 

Simple pseudoscalar correlator.

The correlation function is computed using a point source at the origin.

Parameters:
lat The lattice object containing the gauge configuration. It is assumed that there are no spin degrees of freedom, so this should be a class derived from FstagTypes.
mass Valence quark mass parameter
pion_corr The timesliced pseudoscalar correlation funtion
The number of timeslices over which to compute the correlator.
Postcondition:
The correlator is written to the array and also printed to stdout.

Definition at line 44 of file staggered_local_pion.C.

References cps::glb_sum(), cps::MPISCU::printf(), cps::sfree(), and cps::smalloc().


Generated on Sat Oct 10 14:11:52 2009 for Columbia Physics System by  doxygen 1.3.9.1