| 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 "diagnostics_SIZE.h" |
| 16 |
#include "diagnostics.h" |
| 17 |
#include "EEPARAMS.h" |
| 18 |
#include "PARAMS.h" |
| 19 |
|
| 20 |
integer myThid, myIter |
| 21 |
|
| 22 |
c Local variables |
| 23 |
c =============== |
| 24 |
integer n |
| 25 |
|
| 26 |
C*********************************************************************** |
| 27 |
C*** Check to see if its time for Diagnostic Output *** |
| 28 |
C*********************************************************************** |
| 29 |
do n=1,nlists |
| 30 |
if ( myIter.ne.niter0) then |
| 31 |
if ( mod(myIter,freq(n)).eq.0 ) then |
| 32 |
call diagout(myThid,myIter,n) |
| 33 |
call clrindx(myThid,n) |
| 34 |
endif |
| 35 |
endif |
| 36 |
enddo |
| 37 |
|
| 38 |
return |
| 39 |
end |