function slap_rhs_write ( iunit, n, rhs )

%*****************************************************************************80
%
%% slap_rhs_write writes a right hand side vector to a slap file.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 January 2014
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Mark Seager,
%    A SLAP for the Masses,
%    Lawrence Livermore National Laboratory,
%    Technical Report UCRL-100267, December 1988.
%
%  Input:
%
%    integer IUNIT, the device to which
%    the matrix information is to be written.
%
%    integer N, the order of the matrix.
%
%    real RHS(N), the right hand side vector to be written.
%
  fprintf ( iunit, ' %16.7e\n', rhs(1:n) );

  return
end
