function [ ur, vr, pr ] = resid_noflow ( nu, rho, n, x, y, t )

%*****************************************************************************80
%
%% resid_noflow() evaluates the residuals of the noflow flow.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 September 2025
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real NU, the kinematic viscosity.
%
%    real RHO, the fluid density.
%
%    integer N, the number of nodes.
%
%    real X(N), Y(N), the coordinates of nodes.
%
%    real T, the current time.
%
%  Output:
%
%    real UR(N), VR(N), PR(N), the residuals.
%
  [ u, dudt, dudx, dudxx, dudy, dudyy, us, ...
    v, dvdt, dvdx, dvdxx, dvdy, dvdyy, vs, ...
    p, dpdt, dpdx, dpdxx, dpdy, dpdyy, ps ] = all_noflow ( nu, rho, n, x, y, t );

  ur = dudt + u .* dudx + v .* dudy + dpdx / rho - nu * ( dudxx + dudyy ) - us;
  vr = dvdt + u .* dvdx + v .* dvdy + dpdy / rho - nu * ( dvdxx + dvdyy ) - vs;
  pr = dudx + dvdy - ps;

  return
end
