/[MITgcm]/MITgcm/verification/OpenAD/code_oad_all/the_first_level_loop.F
ViewVC logotype

Annotation of /MITgcm/verification/OpenAD/code_oad_all/the_first_level_loop.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Sat Feb 23 14:25:14 2013 UTC (11 years, 4 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
revolve loop

1 utke 1.4 C $Header: /u/gcmpack/MITgcm/verification/OpenAD/code_oad_all/the_first_level_loop.F,v 1.3 2011/05/24 20:59:04 jmc Exp $
2 utke 1.1 C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5     #include "CPP_OPTIONS.h"
6     #ifdef ALLOW_OBCS
7     # include "OBCS_OPTIONS.h"
8     #endif
9     #ifdef ALLOW_SEAICE
10     # include "SEAICE_OPTIONS.h"
11     #endif
12     #ifdef ALLOW_GMREDI
13     # include "GMREDI_OPTIONS.h"
14     #endif
15    
16     C start with a copy of THE_MAIN_LOOP
17     C and remove some the obvious extras
18     SUBROUTINE THE_FIRST_LEVEL_LOOP(iLoop,
19     +myTime, myIter, myThid )
20     IMPLICIT NONE
21    
22     C == Global variables ==
23     #include "SIZE.h"
24     #include "EEPARAMS.h"
25     #include "PARAMS.h"
26    
27     c**************************************
28     #ifdef ALLOW_AUTODIFF_TAMC
29    
30     c These includes are needed for
31     c AD-checkpointing.
32     c They provide the fields to be stored.
33    
34     # include "GRID.h"
35     # include "DYNVARS.h"
36     # include "FFIELDS.h"
37     # include "EOS.h"
38     # include "GAD.h"
39     # ifdef ALLOW_CAL
40     # include "cal.h"
41     # endif
42     # ifdef ALLOW_CD_CODE
43     # include "CD_CODE_VARS.h"
44     # endif
45     # ifdef ALLOW_PTRACERS
46     # include "PTRACERS_SIZE.h"
47     # include "PTRACERS.h"
48     # endif
49     # ifdef EXACT_CONSERV
50     # include "SURFACE.h"
51     # endif
52     # ifdef ALLOW_OBCS
53 jmc 1.3 # include "OBCS_PARAMS.h"
54     # include "OBCS_GRID.h"
55     # include "OBCS_FIELDS.h"
56     # include "OBCS_SEAICE.h"
57 utke 1.1 # endif
58     # ifdef ALLOW_EXF
59     # include "EXF_FIELDS.h"
60     # include "EXF_PARAM.h"
61     # ifdef ALLOW_BULKFORMULAE
62     # include "EXF_CONSTANTS.h"
63     # endif
64     # endif /* ALLOW_EXF */
65     # ifdef ALLOW_SEAICE
66     # include "SEAICE.h"
67     # endif
68     # ifdef ALLOW_EBM
69     # include "EBM.h"
70     # endif
71     # ifdef ALLOW_KPP
72     # include "KPP.h"
73     # include "KPP_DIAGS.h"
74     # include "KPP_PARAMS.h"
75     # endif
76     # ifdef ALLOW_DIVIDED_ADJOINT_MPI
77     # include "mpif.h"
78     # endif
79    
80     # include "tamc.h"
81     # include "ctrl.h"
82     # include "ctrl_dummy.h"
83     # include "cost.h"
84    
85     #endif /* ALLOW_AUTODIFF_TAMC */
86    
87     integer iLoop
88     INTEGER myThid
89     INTEGER myIter
90     _RL myTime
91    
92     C !LOCAL VARIABLES:
93     C == Local variables ==
94    
95     #ifdef ALLOW_DEBUG
96     IF (debugMode) CALL DEBUG_ENTER('THE_FIRST_LEVEL_LOOP',myThid)
97     #endif
98 utke 1.2 #ifdef OAD_DEBUG
99     write(standardmessageunit,'(2(A,I6))')
100     + 'OAD: THE_FIRST_LEVEL_LOOP: iloop=',iLoop,' of ',nTimeSteps
101     #endif
102 utke 1.1 #ifdef ALLOW_DEBUG
103     IF (debugMode) CALL DEBUG_CALL('FORWARD_STEP',myThid)
104     #endif
105     CALL FORWARD_STEP( iLoop,
106     +mytime, myiter, mythid )
107    
108     #ifdef ALLOW_DEBUG
109     IF (debugMode) CALL DEBUG_LEAVE('THE_FIRST_LEVEL_LOOP',myThid)
110     #endif
111    
112     END
113    

  ViewVC Help
Powered by ViewVC 1.1.22