1 |
C $Header: /u/gcmpack/MITgcm/pkg/autodiff/autodiff_inadmode_unset_ad.F,v 1.3 2011/03/18 10:49:26 mlosch Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "AUTODIFF_OPTIONS.h" |
5 |
|
6 |
SUBROUTINE ADAUTODIFF_INADMODE_UNSET( myThid ) |
7 |
C *==========================================================* |
8 |
C | SUBROUTINE AUTODIFF_INADMODE_UNSET |
9 |
C *==========================================================* |
10 |
|
11 |
IMPLICIT NONE |
12 |
C == Global variables === |
13 |
#include "SIZE.h" |
14 |
#include "EEPARAMS.h" |
15 |
#include "PARAMS.h" |
16 |
|
17 |
C == Routine arguments == |
18 |
C myThid - Thread number for this instance of the routine. |
19 |
integer myThid |
20 |
#ifdef ALLOW_DEBUG |
21 |
character*(MAX_LEN_MBUF) msgBuf |
22 |
#endif |
23 |
|
24 |
inAdMode = inAdFALSE |
25 |
|
26 |
useKPP = useKPPinFwdMode |
27 |
useGMredi = useGMrediInFwdMode |
28 |
useSEAICE = useSEAICEinFwdMode |
29 |
#ifdef ALLOW_DEBUG |
30 |
if ( debugLevel.GE.debLevC ) then |
31 |
write(msgBuf,'(A,L5)') |
32 |
& 'S/R ADAUTODIFF_INADMODE_UNSET_AD: useKPP =', useKPP |
33 |
call print_message( msgBuf, standardMessageUnit, |
34 |
& SQUEEZE_RIGHT , myThid) |
35 |
write(msgBuf,'(A,L5)') |
36 |
& 'S/R ADAUTODIFF_INADMODE_UNSET_AD: useGMredi =', useGMredi |
37 |
call print_message( msgBuf, standardMessageUnit, |
38 |
& SQUEEZE_RIGHT , myThid) |
39 |
write(msgBuf,'(A,L5)') |
40 |
& 'S/R ADAUTODIFF_INADMODE_UNSET_AD: useSEAICE =', useSEAICE |
41 |
call print_message( msgBuf, standardMessageUnit, |
42 |
& SQUEEZE_RIGHT , myThid) |
43 |
endif |
44 |
#endif |
45 |
|
46 |
return |
47 |
end |