SURFEX v8.1
General documentation of Surfex
ismax_1.F90
Go to the documentation of this file.
1 ! Oct-2012 P. Marguinaud 64b LFI
2  FUNCTION ismax_164 &
3  & ( knelem, pchamp) result(iismax_1)
5  IMPLICIT NONE
6 
7 ! Search for position of maximum 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) IISMAX_1
12  INTEGER (KIND=JPLIKB) KNELEM
13  REAL (KIND=JPDBLR) PCHAMP (*)
14 
15  IF (knelem <= 0) THEN
16  iismax_1=0
17  ELSE
18  iismax_1=int(maxloc(array=pchamp(1:knelem) ,dim=1), jplikb)
19  ENDIF
20  RETURN
21  END FUNCTION ismax_164
integer, parameter jplikb
integer(kind=jplikb) function ismax_164(KNELEM, PCHAMP)
Definition: ismax_1.F90:4
static ll_t maxloc
Definition: getcurheap.c:48