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