SURFEX v8.1
General documentation of Surfex
modd_surfex_omp.F90
Go to the documentation of this file.
1 !SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 !SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3 !SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4 !SFX_LIC for details. version 1.
5 ! ######################
7 ! ######################
8 !
9 !!**** *MODD_SURFEX_OMP
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!
15 !!** IMPLICIT ARGUMENTS
16 !! ------------------
17 !! None
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !! AUTHOR
23 !! ------
24 !! S. Faroux *Meteo France*
25 !!
26 !! MODIFICATIONS
27 !! -------------
28 !! Original 26/06/12
29 !! Modified 11/2013 by J.Escobar :add !$ to inhibit completly omp
30 !! dependency
31 !
32 !* 0. DECLARATIONS
33 ! ------------
34 !
35 USE yomhook ,ONLY : lhook, dr_hook
36 USE parkind1 ,ONLY : jprb
37 !
38 #ifdef AIX64
39  USE omp_lib
40 #endif
41 !
42 IMPLICIT NONE
43 !
44 #ifndef AIX64
45  include 'omp_lib.h'
46 #endif
47 !
48 !RJ: this broke non openmp version before
49 !RJ: OMP_GET_THREAD_NUM() returns 0 for first omp thread
50 !RJ: OMP_GET_NUM_THREADS() returns 1 for omp thread count
51 #ifdef RJ_OFIX
52 INTEGER :: nblocktot = 1
53 INTEGER :: nblock = 0
54 #else
55 INTEGER :: nblocktot = 1
56 INTEGER :: nblock = 1
57 #endif
58 !$OMP THREADPRIVATE(NBLOCK)
59 INTEGER :: idc = 0
60 !
61 END MODULE modd_surfex_omp
62 
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15