@@ -144,7 +144,7 @@ int runTest(int argc, char* argv[], std::string& solver_name)
144144 error_sum += status;
145145 helper.setSystem (A, &vec_rhs, &vec_x);
146146
147- if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
147+ if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
148148 {
149149 test_name += " + IR" ;
150150
@@ -164,11 +164,11 @@ int runTest(int argc, char* argv[], std::string& solver_name)
164164 // Print result summary and check solution
165165 std::cout << " \n Results (first matrix): \n\n " ;
166166 helper.printSummary ();
167- if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
167+ if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
168168 {
169169 helper.printIrSummary (&FGMRES);
170170 }
171- error_sum += helper.checkResult (10 * ReSolve::constants::MACHINE_EPSILON); // tolerance increased to deal with system
171+ error_sum += helper.checkResult (10 * ReSolve::constants::MACHINE_EPSILON); // tolerance increased to deal with system
172172
173173 // Load the second matrix
174174 std::ifstream mat2 (matrix_file_name_2);
@@ -195,7 +195,7 @@ int runTest(int argc, char* argv[], std::string& solver_name)
195195 error_sum += status;
196196 std::cout << " KLU refactorization status: " << status << std::endl;
197197
198- if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
198+ if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
199199 {
200200 std::cout << " Second matrix: Performing iterative refinement...\n " ;
201201 FGMRES.resetMatrix (A);
@@ -215,11 +215,11 @@ int runTest(int argc, char* argv[], std::string& solver_name)
215215
216216 std::cout << " \n Results (second matrix): \n\n " ;
217217 helper.printSummary ();
218- if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
218+ if (is_ir && helper.checkResult (ReSolve::constants::MACHINE_EPSILON)) // only perform IR if you haven't reached machine accuracy
219219 {
220220 helper.printIrSummary (&FGMRES);
221221 }
222- error_sum += helper.checkResult (100 * ReSolve::constants::MACHINE_EPSILON); // tolerance increased to deal with system
222+ error_sum += helper.checkResult (100 * ReSolve::constants::MACHINE_EPSILON); // tolerance increased to deal with system
223223
224224 isTestPass (error_sum, test_name);
225225
0 commit comments