SURFEX v8.1
General documentation of Surfex
get_proc_id.F90
Go to the documentation of this file.
1 FUNCTION get_proc_id() RESULT(PID)
2 
3 USE parkind1 ,ONLY : jpim
4 #ifdef SFX_MPI
5 USE mpl_module, ONLY : mpl_rank
6 #endif
7 IMPLICIT NONE
8 INTEGER(KIND=JPIM) :: PID
9 #ifdef SFX_MPI
10 pid = mpl_rank
11 #else
12 pid = 0
13 #endif
14 
15 END FUNCTION get_proc_id
integer, parameter jpim
Definition: parkind1.F90:13
integer(kind=jpim) function get_proc_id()
Definition: get_proc_id.F90:2