Skip to content

Commit c2541c4

Browse files
shakedregevactions-user
authored andcommitted
Apply pre-commmit fixes
1 parent 4ac8db3 commit c2541c4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

resolve/SystemSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ namespace ReSolve
532532
}
533533
}
534534

535-
// if (irMethod_ == "fgmres")
535+
// if (irMethod_ == "fgmres")
536536
// {
537537
// if (is_solve_on_device_)
538538
// {

tests/functionality/testKlu.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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 << "\nResults (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 << "\nResults (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

Comments
 (0)