1 |
subroutine diagnostics_write (myThid, myIter) |
2 |
C*********************************************************************** |
3 |
C Purpose |
4 |
C ------- |
5 |
C Output sequence for the (multiple) diagnostics output files |
6 |
C |
7 |
C Arguments Description |
8 |
C ---------------------- |
9 |
C myIter ..... Current Iteration Number |
10 |
C myThid ..... Current Process(or) |
11 |
C*********************************************************************** |
12 |
implicit none |
13 |
#include "CPP_OPTIONS.h" |
14 |
#include "SIZE.h" |
15 |
#include "fizhi_SIZE.h" |
16 |
#include "diagnostics_SIZE.h" |
17 |
#include "diagnostics.h" |
18 |
|
19 |
integer myThid, myIter |
20 |
|
21 |
c Local variables |
22 |
c =============== |
23 |
integer n |
24 |
|
25 |
C*********************************************************************** |
26 |
C*** Check to see if its time for Diagnostic Output *** |
27 |
C*********************************************************************** |
28 |
do n=1,nlists |
29 |
if ( mod(freq(n),myIter).eq.0 ) then |
30 |
call diagout(myThid,n) |
31 |
call clrindx(myThid,n) |
32 |
endif |
33 |
enddo |
34 |
|
35 |
return |
36 |
end |