20 for(
int i=0; i<np; i++) {
22 osstr << baseName <<
"." << np <<
"." << i;
24 if (!infile || infile.bad())
return(-1);
29 while(!infile.eof()) {
32 for(
int j=0; j<numDOF; j++) {
34 solution.
putCoef(node,j,tmpValue);
64 const char* solnFileName,
65 const char* checkFileName,
66 const char* extension,
74 fullSolnFileName << solnFileName<<
"."<<extension<<
"."<<solveCounter;
75 fullCheckFileName<< checkFileName<<
"."<<extension<<
".correct."<<solveCounter;
77 std::string fullCheck_str = fullCheckFileName.str();
78 const char* check_c_str = fullCheck_str.c_str();
89 std::string fullSoln_str = fullSolnFileName.str();
90 const char* soln_c_str = fullSoln_str.c_str();
92 if (err != 0)
return(err);
94 FEI_COUT <<
"FEI_tester:checkSolution: checking '"<<extension<<
"' solution...";
97 if (solnCheckCode != 0) {
int readMatrix(const char *baseName, int np, fei::FillableMat &matrix)
int readSoln(const char *baseName, int np, fei::FillableMat &solution)
int compareMatrices(fei::FillableMat &mat1, fei::FillableMat &mat2, double tol)
int checkSolution(int localProc, int numProcs, const char *solnFileName, const char *checkFileName, const char *extension, int solveCounter)
void putCoef(int row, int col, double coef)
int readMatrix(const char *baseName, int np, fei::FillableMat &matrix)
int localProc(MPI_Comm comm)
int compareSoln(fei::FillableMat &solution1, fei::FillableMat &solution2, double tol=1.e-3)
int compareMatrices(fei::FillableMat &mat1, fei::FillableMat &mat2)
#define FEI_OSTRINGSTREAM
int numProcs(MPI_Comm comm)
void print(std::ostream &os, const FillableMat &mat)