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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
+3 −3
Original line number Diff line number Diff line
@@ -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;
+3 −3
Original line number Diff line number Diff line
@@ -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;