SURFEX v8.1
General documentation of Surfex
ismin_1.F90
Go to the documentation of this file.
1 ! Oct-2012 P. Marguinaud 64b LFI
2  FUNCTION ismin_164 &
3  & ( knelem, pchamp) result(iismin_1)
5  IMPLICIT NONE
6 
7 ! Search for position of minimum value in array PCHAMP.
8 ! Simplified version (good for vector computers) assuming stride=1
9 ! Original F. Vana - ONPP/CHMI - 23-Mar-2010
10 
11  INTEGER (KIND=JPLIKB) IISMIN_1
12  INTEGER (KIND=JPLIKB) KNELEM
13  REAL (KIND=JPDBLR) PCHAMP (*)
14 
15  IF (knelem <= 0) THEN
16  iismin_1=0
17  ELSE
18  iismin_1=int(minloc(array=pchamp(1:knelem) ,dim=1), jplikb)
19  ENDIF
20  RETURN
21  END FUNCTION ismin_164
integer, parameter jplikb
integer(kind=jplikb) function ismin_164(KNELEM, PCHAMP)
Definition: ismin_1.F90:4