function r83t_gs_sl_test ( )

%*****************************************************************************80
%
%% R83T_GS_SL_TEST tests R83T_GS_SL.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    28 May 2016
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  it_max = 25;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83T_GS_SL_TEST\n' );
  fprintf ( 1, '  R83T_GS_SL solves a linear system using\n' );
  fprintf ( 1, '  Gauss-Seidel iteration, with R83T matrix storage.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N =      %d\n', n );
  fprintf ( 1, '  Iterations per call = %d\n', it_max );
%
%  Set the matrix values.
%
  a = r83t_dif2 ( n, n );
%
%  Set the desired solution.
%
  x = r8vec_indicator1 ( n );
%
%  Compute the corresponding right hand side.
%
  b = r83t_mv ( n, n, a, x );
%
%  Set the starting solution.
%
  x = zeros ( n, 1 );
%
%  Solve the linear system.
%
  for i = 1 : 3

    x = r83t_gs_sl ( n, a, b, x, it_max );

    r8vec_print ( n, x, '  Current solution estimate:' );

  end

  return
end
