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

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

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


Revision 1.8 - (show 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 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_write.F,v 1.7 2004/07/06 03:55:53 edhill Exp $
2 C $Name: $
3
4 #include "DIAG_OPTIONS.h"
5
6 SUBROUTINE DIAGNOSTICS_WRITE ( myIter, myThid )
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 ..... my thread Id number
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 myIter, myThid
25
26 c Local variables
27 c ===============
28 INTEGER n
29
30 IF ( myIter.ne.nIter0 ) THEN
31
32 C***********************************************************************
33 C*** Check to see IF its time for Diagnostic Output ***
34 C***********************************************************************
35
36 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