*
* $Id$
*
* $Log$
* Revision 1.1  1996/02/15 17:49:50  mclareni
* Initial revision
*
*
#include "kerngen/pilot.h"
      FUNCTION LVSDMX (A,NDO,INC)
C
C CERN PROGLIB# F121    LVSDMX          .VERSION KERNFOR  4.21  890323
C ORIG. 01/03/89 FCA
C
C-    Find Maximum in scattered vector, double precision

      DOUBLE PRECISION A(*), HMAX
C
      HMAX = A(1)
      LMAX = 1
      DO 10 J = INC+1, (NDO-1)*INC+1, INC
        IF(HMAX.LT.A(J)) THEN
          HMAX = A(J)
          LMAX = J
        ENDIF
   10 CONTINUE
      LVSDMX = LMAX
      END
