22 |
C | C*P* comments indicating place holders for which code is | |
C | C*P* comments indicating place holders for which code is | |
23 |
C | presently being developed. | |
C | presently being developed. | |
24 |
C \==========================================================/ |
C \==========================================================/ |
25 |
|
IMPLICIT NONE |
26 |
C |
C |
27 |
C Call Tree |
C Call Tree |
28 |
C ========= |
C ========= |
85 |
#include "SIZE.h" |
#include "SIZE.h" |
86 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
87 |
#include "PARAMS.h" |
#include "PARAMS.h" |
|
#include "CG2D.h" |
|
88 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
89 |
#include "AVER.h" |
#include "CG2D.h" |
90 |
|
#ifdef ALLOW_NONHYDROSTATIC |
91 |
|
#include "CG3D.h" |
92 |
|
#endif |
93 |
|
|
94 |
C == Routine arguments == |
C == Routine arguments == |
95 |
C myThid - Thread number for this instance of the routine. |
C myThid - Thread number for this instance of the routine. |
105 |
C myCurrentTime - Time counter for this thread |
C myCurrentTime - Time counter for this thread |
106 |
C I - Loop counter |
C I - Loop counter |
107 |
INTEGER I, myCurrentIter |
INTEGER I, myCurrentIter |
108 |
REAL myCurrentTime |
_RL myCurrentTime |
109 |
|
|
110 |
C-- This timer encompasses the whole code |
C-- This timer encompasses the whole code |
111 |
CALL TIMER_START('ALL',myThid) |
CALL TIMER_START('ALL',myThid) |
142 |
CALL TIMER_STOP ('SHAP_FILT [MAIN LOOP]',myThid) |
CALL TIMER_STOP ('SHAP_FILT [MAIN LOOP]',myThid) |
143 |
#endif |
#endif |
144 |
|
|
|
|
|
145 |
C-- Step forward fields and calculate time tendency terms |
C-- Step forward fields and calculate time tendency terms |
146 |
CALL TIMER_START('DYNAMICS [MAIN LOOP]',myThid) |
CALL TIMER_START('DYNAMICS [MAIN LOOP]',myThid) |
147 |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
148 |
CALL TIMER_STOP ('DYNAMICS [MAIN LOOP]',myThid) |
CALL TIMER_STOP ('DYNAMICS [MAIN LOOP]',myThid) |
149 |
|
|
150 |
|
#ifdef ALLOW_NONHYDROSTATIC |
151 |
|
C-- Step forward W field in N-H algorithm |
152 |
|
IF ( nonHydrostatic ) THEN |
153 |
|
CALL TIMER_START('CALC_GW [MAIN LOOP]',myThid) |
154 |
|
CALL CALC_GW( myThid) |
155 |
|
CALL TIMER_STOP ('CALC_GW [MAIN LOOP]',myThid) |
156 |
|
ENDIF |
157 |
|
#endif |
158 |
|
|
159 |
C-- Do time averages |
C-- Do time averages |
160 |
#ifdef INCLUDE_DIAGNOSTICS_INTERFACE_CODE |
#ifdef INCLUDE_DIAGNOSTICS_INTERFACE_CODE |
161 |
CALL TIMER_START('I/O (WRITE) [MAIN LOOP]',myThid) |
CALL TIMER_START('I/O (WRITE) [MAIN LOOP]',myThid) |
223 |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
224 |
CALL TIMER_STOP ('DYNAMICS [SPIN-DOWN]',myThid) |
CALL TIMER_STOP ('DYNAMICS [SPIN-DOWN]',myThid) |
225 |
|
|
226 |
|
#ifdef ALLOW_NONHYDROSTATIC |
227 |
|
IF ( nonHydrostatic ) THEN |
228 |
|
C-- Step forward W field in N-H algorithm |
229 |
|
CALL TIMER_START('CALC_GW [SPIN-DOWN]',myThid) |
230 |
|
CALL CALC_GW( myThid) |
231 |
|
CALL TIMER_STOP ('CALC_GW [SPIN-DOWN]',myThid) |
232 |
|
ENDIF |
233 |
|
#endif |
234 |
|
|
235 |
C-- Do time averages |
C-- Do time averages |
236 |
#ifdef ALLOW_DIAGNOSTICS |
#ifdef INCLUDE_DIAGNOSTICS_INTERFACE_CODE |
237 |
IF (taveFreq.GT.0.) THEN |
IF (taveFreq.GT.0.) THEN |
238 |
CALL TIMER_START('I/O (WRITE) [SPIN-DOWN]',myThid) |
CALL TIMER_START('I/O (WRITE) [SPIN-DOWN]',myThid) |
239 |
CALL WRITE_TIME_AVERAGES( myCurrentTime, myCurrentIter, myThid ) |
CALL WRITE_TIME_AVERAGES( myCurrentTime, myCurrentIter, myThid ) |