function uvp2_poiseuille_test ( )

%*****************************************************************************80
%
%% UVP2_POISEUILLE_TEST samples the Poiseuille solution on the boundary.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 July 2015
%
%  Author:
%
%    John Burkardt
%
  x_lo = 0.0;
  x_hi = 6.0;
  y_lo = -1.0;
  y_hi = +1.0;

  nu = 1.0;
  rho = 1.0;
  t = 0.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'UVP2_POISEUILLE_TEST\n' );
  fprintf ( 1, '  Poiseuille Flow:\n' );
  fprintf ( 1, '  Estimate the range of velocity and pressure\n' );
  fprintf ( 1, '  on the boundary\n' );
  fprintf ( 1, '  at the initial time T = 0, over a channel region.\n' );
  fprintf ( 1, '  Kinematic viscosity NU = %g\n', nu );
  fprintf ( 1, '  Fluid density RHO = %g\n', rho );

  n = 400;
  x = zeros ( n, 1 );
  y = zeros ( n, 1 );

  x(1:100,1) = linspace ( x_lo, x_hi, 100 );
  y(1:100,1) = y_lo;

  x(101:200,1) = x_hi;
  y(101:200,1) = linspace ( y_lo, y_hi, 100 );

  x(201:300,1) = linspace ( x_hi, x_lo, 100 );
  y(201:300,1) = y_hi;

  x(301:400,1) = x_lo;
  y(301:400,1) = linspace ( y_hi, y_lo, 100 );

  [ u, v, p ] = uvp_poiseuille ( nu, rho, n, x, y, t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '           Minimum       Maximum\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  U:  %14.6g  %14.6g\n', min ( u ), max ( u ) );
  fprintf ( 1, '  V:  %14.6g  %14.6g\n', min ( v ), max ( v ) );
  fprintf ( 1, '  P:  %14.6g  %14.6g\n', min ( p ), max ( p ) );

  return
end
