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