FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
fei_test_utils.hpp File Reference
#include <fei_macros.hpp>
#include <fei_mpi.h>
#include <fei_fwd.hpp>
#include <fei_FillableMat.hpp>
#include <vector>
#include <string>
Include dependency graph for fei_test_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 fei_test_utils
 

Functions

std::string fei_test_utils::construct_filename (int argc, char **argv)
 
int fei_test_utils::initialize_mpi (int argc, char **argv, int &localProc, int &numProcs)
 
bool fei_test_utils::bool_arg (const char *flag, int argc, char **argv, bool default_result)
 
std::string fei_test_utils::get_arg_value (const char *flag, int argc, char **argv)
 
void fei_test_utils::broadcast_string (MPI_Comm comm, int root, std::string &strg)
 
int fei_test_utils::get_filename_and_read_input (int argc, char **argv, MPI_Comm comm, int localProc, std::vector< std::string > &stdstrings)
 
void fei_test_utils::read_file_lines_into_strings (const char *filename, std::vector< std::string > &file_contents)
 
void fei_test_utils::read_input_file (const char *filename, MPI_Comm comm, std::vector< std::string > &file_contents)
 
double fei_test_utils::get_file_benchmark (const char *filename, const char *testname)
 
bool fei_test_utils::within_percentage_margin (double value1, double value2, unsigned margin)
 
bool fei_test_utils::check_and_cout_test_result (std::string testname, double value, double file_value, unsigned margin)
 
std::string fei_test_utils::check_test_result (double value, double goldvalue, unsigned margin)
 
int fei_test_utils::compare_with_file_benchmark (const char *name, double benchmark, const char *filename)
 
int fei_test_utils::whichArg (int argc, const char *const *argv, const char *findarg)
 
int fei_test_utils::dirname (const char *name, char *&dir)
 
void fei_test_utils::print_args (int argc, char **argv)
 
int fei_test_utils::compareMatrices (fei::FillableMat &mat1, fei::FillableMat &mat2, double tol)
 
int fei_test_utils::readMatrix (const char *baseName, int np, fei::FillableMat &matrix)
 
int fei_test_utils::readMatrix (const char *fileName, fei::FillableMat &matrix)
 
int fei_test_utils::writeMatrix (const char *fileName, fei::FillableMat &matrix)
 
int fei_test_utils::copy_feiMatrix_to_FillableMat (fei::Matrix &feimat, fei::FillableMat &fmat)