1 |
|
|
MODULE YOMHOOK |
2 |
|
|
|
3 |
|
|
USE PARKIND1 ,ONLY : JPIM ,JPRB |
4 |
|
|
|
5 |
|
|
IMPLICIT NONE |
6 |
|
|
|
7 |
|
|
! Used by "hook" function |
8 |
|
|
! LHOOK = true implies "hook" function will be called |
9 |
|
|
! Altough initialized to TRUE it will be reset by first call to |
10 |
|
|
! DR_HOOK unless we really want to use the hook function |
11 |
|
|
|
12 |
|
|
LOGICAL :: LHOOK=.TRUE. |
13 |
|
|
|
14 |
|
|
CONTAINS |
15 |
|
|
|
16 |
|
3138382 |
SUBROUTINE DR_HOOK(CDNAME,KSWITCH,PKEY) |
17 |
|
|
CHARACTER(LEN=*), INTENT(IN) :: CDNAME |
18 |
|
|
INTEGER(KIND=JPIM), INTENT(IN) :: KSWITCH |
19 |
|
|
REAL(KIND=JPRB), INTENT(INOUT) :: PKEY |
20 |
|
|
IF (KSWITCH.EQ.0) THEN |
21 |
|
|
! PRINT *,'--> ON ENTRE DANS: ',CDNAME |
22 |
|
|
ELSE IF (KSWITCH.EQ.1) THEN |
23 |
|
|
! PRINT *,' ON SORT DE : ',CDNAME |
24 |
|
|
ENDIF |
25 |
|
3138382 |
END SUBROUTINE DR_HOOK |
26 |
|
|
|
27 |
|
|
SUBROUTINE C_DRHOOK_PRINT |
28 |
|
|
|
29 |
|
|
! subroutine vide MPL 4.12.08 |
30 |
|
|
!INTEGER(KIND=JPIM) ITID, KTID, IPRINT_OPTION, ILEVEL |
31 |
|
|
!ITID = 0 |
32 |
|
|
!KTID = 0 |
33 |
|
|
!IPRINT_OPTION = 2 |
34 |
|
|
!ILEVEL = 0 |
35 |
|
|
PRINT *,'ON EST DANS C_DRHOOK_PRINT ' |
36 |
|
|
|
37 |
|
|
END SUBROUTINE C_DRHOOK_PRINT |
38 |
|
|
END MODULE YOMHOOK |