/[MITgcm]/MITgcm/pkg/diagnostics/diagnostics_write.F
ViewVC logotype

Annotation of /MITgcm/pkg/diagnostics/diagnostics_write.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (hide annotations) (download)
Mon Dec 13 21:55:48 2004 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57b_post, checkpoint57c_pre, checkpoint57c_post
Changes since 1.7: +28 -19 lines
new S/R diagnostics_fill (replace fill_diagnostics):
 * look through the short list of active diag. (instead of through the long
   list of all available diagnostics) ;
 * create function DIAGNOSTICS_IS_ON to tell if a diagnostics is active

1 jmc 1.8 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_write.F,v 1.7 2004/07/06 03:55:53 edhill Exp $
2 edhill 1.6 C $Name: $
3    
4 edhill 1.7 #include "DIAG_OPTIONS.h"
5    
6 jmc 1.8 SUBROUTINE DIAGNOSTICS_WRITE ( myIter, myThid )
7 molod 1.1 C***********************************************************************
8     C Purpose
9     C -------
10 molod 1.2 C Output sequence for the (multiple) diagnostics output files
11 molod 1.1 C
12     C Arguments Description
13     C ----------------------
14 molod 1.2 C myIter ..... Current Iteration Number
15 jmc 1.8 C myThid ..... my thread Id number
16 molod 1.1 C***********************************************************************
17 jmc 1.8 IMPLICIT NONE
18 molod 1.1 #include "SIZE.h"
19 jmc 1.8 #include "DIAGNOSTICS_SIZE.h"
20     #include "DIAGNOSTICS.h"
21 molod 1.4 #include "EEPARAMS.h"
22     #include "PARAMS.h"
23 molod 1.1
24 jmc 1.8 INTEGER myIter, myThid
25 molod 1.1
26     c Local variables
27     c ===============
28 jmc 1.8 INTEGER n
29    
30     IF ( myIter.ne.nIter0 ) THEN
31 molod 1.1
32     C***********************************************************************
33 jmc 1.8 C*** Check to see IF its time for Diagnostic Output ***
34 molod 1.1 C***********************************************************************
35    
36 jmc 1.8 DO n = 1,nlists
37     IF ( MOD(myIter,freq(n)).EQ.0 ) THEN
38     CALL DIAGNOSTICS_OUT(n,myIter,myThid)
39     ENDIF
40     ENDDO
41    
42     C- wait for everyone before setting arrays to zero:
43     _BARRIER
44     DO n = 1,nlists
45     IF ( MOD(myIter,freq(n)).EQ.0 ) CALL CLRINDX(n,myThid)
46     ENDDO
47    
48     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
49     ENDIF
50    
51     RETURN
52     END

  ViewVC Help
Powered by ViewVC 1.1.22