function gnuplot_stokes2_test ( )

%*****************************************************************************80
%
%% gnuplot_stokes2_test() plots solution #2 on a regular grid.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 January 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'gnuplot_stokes2_test():\n' );
  fprintf ( 1, '  Exact Stokes solution #2:\n' );
  fprintf ( 1, '  Generate a Stokes velocity field on a regular grid.\n' );
  fprintf ( 1, '  Store in GNUPLOT data and command files.\n' );

  x_num = 21;
  x_lo = 0.0;
  x_hi = 1.0;

  y_num = 21;
  y_lo = 0.0;
  y_hi = 1.0;

  [ x, y ] = grid_2d ( x_num, x_lo, x_hi, y_num, y_lo, y_hi );

  n = x_num * y_num;

  [ u, v, p ] = uvp_stokes2 ( n, x, y );

  header = 'stokes2';
  s = 0.05;
  stokes_gnuplot ( header, n, x, y, u, v, s );

  return
end

