Skip to content
Snippets Groups Projects
Commit 46db06bd authored by wenqing's avatar wenqing
Browse files

Changes a member name of PETScLinearSolver and others

parent 218bb812
No related branches found
No related tags found
No related merge requests found
......@@ -61,10 +61,10 @@ class PETScLinearSolver
/*!
\brief Get number of iterations.
If function solve(...) returns false, it returns the maximum
iterations.
If function solve(...) returns false, the return value is
exactly the maximum iterations.
*/
PetscInt getIterations() const
PetscInt getNumberOfIterations() const
{
PetscInt its = 0;
KSPGetIterationNumber(_solver, &its);
......@@ -76,7 +76,7 @@ class PETScLinearSolver
/// that preconditioner matrix may vary.
PETScMatrix &_A;
KSP _solver; ///< Slover type.
KSP _solver; ///< Solver type.
PC _pc; ///< Preconditioner type.
};
......
......@@ -183,7 +183,7 @@ void checkLinearSolverInterface(T_MATRIX &A, T_VECTOR &b, const std::string &pre
T_LINEAR_SOVLER ls(A, prefix_name);
ls.solve(b, x);
EXPECT_GT(ls.getIterations(), 0u);
EXPECT_GT(ls.getNumberOfIterations(), 0u);
x.getGlobalVector(x1);
ASSERT_ARRAY_NEAR(x0, x1, 6, 1e-5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment