Skip to content
Snippets Groups Projects
Commit 57b6e220 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Small fixes in comments in examples on iterative solvers for linear systems.

parent 097584e4
No related branches found
No related tags found
1 merge request!116Documentation for linear solvers and preconditioners
......@@ -52,7 +52,7 @@ void iterativeLinearSolverExample()
std::cout << *matrix_ptr << std::endl;
/***
* Set the right-hand side vector
* Set the right-hand side vector.
*/
Vector x( size, 1.0 );
Vector b( size );
......@@ -61,7 +61,7 @@ void iterativeLinearSolverExample()
std::cout << "Vector b = " << b << std::endl;
/***
* Solve the linear system
* Solve the linear system.
*/
using LinearSolver = TNL::Solvers::Linear::TFQMR< MatrixType >;
LinearSolver solver;
......
......@@ -54,7 +54,7 @@ void iterativeLinearSolverExample()
std::cout << *matrix_ptr << std::endl;
/***
* Set the right-hand side vector
* Set the right-hand side vector.
*/
Vector x( size, 1.0 );
Vector b( size );
......@@ -63,7 +63,7 @@ void iterativeLinearSolverExample()
std::cout << "Vector b = " << b << std::endl;
/***
* Setup solver of the linear system
* Setup solver of the linear system.
*/
using LinearSolver = TNL::Solvers::Linear::Jacobi< MatrixType >;
LinearSolver solver;
......@@ -71,7 +71,7 @@ void iterativeLinearSolverExample()
solver.setOmega( 0.0005 );
/***
* Setup monitor of the iterative solver
* Setup monitor of the iterative solver.
*/
using IterativeSolverMonitorType = TNL::Solvers::IterativeSolverMonitor< double, int >;
IterativeSolverMonitorType monitor;
......
......@@ -55,7 +55,7 @@ void iterativeLinearSolverExample()
std::cout << *matrix_ptr << std::endl;
/***
* Set the right-hand side vector
* Set the right-hand side vector.
*/
Vector x( size, 1.0 );
Vector b( size );
......@@ -64,7 +64,7 @@ void iterativeLinearSolverExample()
std::cout << "Vector b = " << b << std::endl;
/***
* Setup solver of the linear system
* Setup solver of the linear system.
*/
using LinearSolver = TNL::Solvers::Linear::Jacobi< MatrixType >;
LinearSolver solver;
......@@ -72,7 +72,7 @@ void iterativeLinearSolverExample()
solver.setOmega( 0.0005 );
/***
* Setup monitor of the iterative solver
* Setup monitor of the iterative solver.
*/
using IterativeSolverMonitorType = TNL::Solvers::IterativeSolverMonitor< double, int >;
IterativeSolverMonitorType monitor;
......
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