86 |
#include "PARAMS.h" |
#include "PARAMS.h" |
87 |
#include "CG2D.h" |
#include "CG2D.h" |
88 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
89 |
|
#include "AVER.h" |
90 |
|
|
91 |
C == Routine arguments == |
C == Routine arguments == |
92 |
C myThid - Thread number for this instance of the routine. |
C myThid - Thread number for this instance of the routine. |
118 |
C-- Step forward fields and calculate time tendency terms |
C-- Step forward fields and calculate time tendency terms |
119 |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
120 |
|
|
121 |
|
C-- Do time averages |
122 |
|
IF (taveFreq.GT.0.) THEN |
123 |
|
CALL DO_TIME_AVERAGES( myCurrentTime, myCurrentIter, myThid ) |
124 |
|
ENDIF |
125 |
|
|
126 |
C-- Do IO if needed. |
C-- Do IO if needed. |
127 |
C Note: |
C Note: |
128 |
C ===== |
C ===== |
157 |
C at time level 1 |
C at time level 1 |
158 |
CALL WRITE_CHECKPOINT( .FALSE., myCurrentTime, myCurrentIter, myThid ) |
CALL WRITE_CHECKPOINT( .FALSE., myCurrentTime, myCurrentIter, myThid ) |
159 |
|
|
|
write(0,*) maxval(abs(uVel)),maxval(abs(vVel)) |
|
|
if (maxval(abs(uVel)).gt.10.) goto 911 |
|
|
if (maxval(abs(vVel)).gt.10.) goto 911 |
|
|
if (maxval(abs(theta)).gt.40.) goto 911 |
|
160 |
ENDDO |
ENDDO |
161 |
|
|
|
911 continue |
|
|
|
|
162 |
C-- Final checkpoint (incase the in-loop checkpoint was missed) |
C-- Final checkpoint (incase the in-loop checkpoint was missed) |
163 |
CALL WRITE_CHECKPOINT( .TRUE., myCurrentTime, myCurrentIter, myThid ) |
CALL WRITE_CHECKPOINT( .TRUE., myCurrentTime, myCurrentIter, myThid ) |
164 |
|
|
165 |
C-- Step-forward U/V/Theta/Salt for purposes of final I/O dump |
C-- Step-forward U/V/Theta/Salt for purposes of final I/O dump |
166 |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
CALL DYNAMICS( myCurrentTime, myCurrentIter, myThid ) |
167 |
|
|
168 |
|
C-- Do time averages |
169 |
|
IF (taveFreq.GT.0.) THEN |
170 |
|
CALL DO_TIME_AVERAGES( myCurrentTime, myCurrentIter, myThid ) |
171 |
|
ENDIF |
172 |
|
|
173 |
C-- Dump for end state |
C-- Dump for end state |
174 |
CALL WRITE_STATE( myCurrentTime, myCurrentIter, myThid ) |
CALL WRITE_STATE( myCurrentTime, myCurrentIter, myThid ) |
175 |
|
|