function k = k_from_ij ( i, j, nx )

%*****************************************************************************80
%
%% k_from_ij returns the k coordinate given the (i,j) coordinates.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    16 July 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer i, j: the (i,j) coordinates.
%
%    integer nx: the number of points in a row of the grid.
%
%  Output:
%
%    integer k: the k coordinate.
%
  k = i + ( j - 1 ) * nx;

  return
end

