24 #define fei_file "test_FEI.cpp"
54 std::string solverName;
57 throw std::runtime_error(
".input file doesn't contain 'SOLVER_LIBRARY'");
63 throw std::runtime_error(
".input file doesn't contain 'WHICH_FEI'");
66 std::string inputFileName;
69 throw std::runtime_error(
".input file doesn't contain 'INPUT_FILE'");
72 std::string paramFile;
75 throw std::runtime_error(
".input file doesn't contain 'PARAM_FILE'");
81 throw std::runtime_error(
".input file doesn't contain 'SOLN_FILE'");
84 std::string checkFile;
87 throw std::runtime_error(
".input file doesn't contain 'CHECK_FILE'");
90 std::string readerType;
99 std::string fullName_str = fullName.str();
100 const char* fullName_c_str = fullName_str.c_str();
109 const char* paramFile_c_str = fullParamFileName.c_str();
111 std::vector<std::string> param_file_contents;
113 param_file_contents);
115 data_reader->
numParams_ = param_file_contents.size();
118 for(
unsigned i=0; i<param_file_contents.size(); ++i) {
119 std::string& str = param_file_contents[i];
121 for(
unsigned j=0; j<str.size(); ++j) {
138 if (whichFEI ==
"OLDFEI") {
141 if (whichFEI ==
"fei::FEI_Impl") {
142 bool useNewFEI =
true;
146 else if (whichFEI ==
"new_fei") {
150 if (fei_tester.
get() == NULL) {
165 for(
int solveCounter=1; solveCounter<=numSolves; solveCounter++) {
188 std::vector<std::string> inputFileStrings;
193 std::size_t length = path_.size();
195 if (path_[length-1] !=
'/') filename<<
"/";
200 std::string filename_str = filename.str();
201 const char* filename_c_str = filename_str.c_str();
215 std::size_t length = path_.size();
217 if (path_[length-1] !=
'/') osstr<<
"/";
virtual int testInitialization()=0
std::string solverLibraryName_
int getStringParamValue(const char *name, std::string ¶mValue) const
std::string fully_qualified_name(const std::string &fileName)
std::string checkFileName_
int readData(const char *fileName)
fei::SharedPtr< fei::ParameterSet > get_test_parameters()
void read_input_file(const char *filename, MPI_Comm comm, std::vector< std::string > &file_contents)
virtual int testSolve()=0
void parse_strings(std::vector< std::string > &stdstrings, const char *separator_string, fei::ParameterSet ¶mset)
void setPath(const std::string &path)
std::string solnFileName_
virtual int testCheckResult()=0
virtual int testLoading()=0
#define FEI_OSTRINGSTREAM
int getIntParamValue(const char *name, int ¶mValue) const