/[MITgcm]/MITgcm/pkg/fizhi/fizhi_diagalarms.F
ViewVC logotype

Contents of /MITgcm/pkg/fizhi/fizhi_diagalarms.F

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


Revision 1.4 - (show annotations) (download)
Mon Oct 3 18:46:50 2005 UTC (18 years, 8 months ago) by molod
Branch: MAIN
CVS Tags: checkpoint57v_post, checkpint57u_post
Changes since 1.3: +10 -7 lines
Get negative freq (snap shot) to work - also little bug fix

1 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_diagalarms.F,v 1.3 2005/06/02 22:56:52 molod Exp $
2 C $Name: $
3
4 #include "FIZHI_OPTIONS.h"
5 subroutine fizhi_diagalarms (myThid)
6
7 C***********************************************************************
8 C Purpose
9 C -------
10 C Routine to Set Alarms for diagnostic output
11 C
12 C Argument Description
13 C --------------------
14 C myThid .... Process ID
15 C
16 C NOTE: This routine ASSUMES that fizhi_init_fixed has been called
17 C IT WILL NOT WORK OTHERWISE
18 C***********************************************************************
19 implicit none
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 #include "DIAGNOSTICS_SIZE.h"
24 #include "DIAGNOSTICS.h"
25 #include "chronos.h"
26
27 c Input Parameters
28 c ----------------
29 integer myThid
30
31 c Local variables
32 c -------------------
33 integer nhmsf, n, nincr
34 integer mmdd,hhmmss,nsecf2
35 character *9 tagname
36 integer nymdb,nhmsb
37 integer absfreq
38
39 c Set Alarm Clocks
40 c ----------------
41 c To Set Begin Time for Alarm Clocks:
42 c Increment < 1 month - counting starts at model start time
43 c Increment >= 1 month - counting starts at beginning of start month
44 c ----------------------------------------------------------------------
45
46 C- 2D/3D field diagnostics:
47 do n = 1,nlists
48 absfreq = abs(freq(n))
49 if(absfreq.lt.100.) then
50 nymdb = nymd
51 nhmsb = nhms
52 else
53 nymdb = int(nymd/100) * 100 + 1
54 nhmsb = 0
55 endif
56 write(tagname,'(A,I2.2)')'diagtag',n
57 mmdd = int(absfreq)
58 hhmmss = int((absfreq - int(absfreq))*1.e6)
59 nincr = mmdd * 1.e6 + hhmmss
60 call set_alarm(tagname,nymdb,nhmsb,nincr)
61 enddo
62
63 C- Global/Regional statistics diagnostics:
64 do n = 1,diagSt_nbLists
65 absfreq = abs(diagSt_freq(n))
66 if(absfreq.lt.100.) then
67 nymdb = nymd
68 nhmsb = nhms
69 else
70 nymdb = int(nymd/100) * 100 + 1
71 nhmsb = 0
72 endif
73 write(tagname,'(A,I2.2)')'diagStg',n
74 mmdd = int(absfreq)
75 hhmmss = int((absfreq - int(absfreq))*1.e6)
76 nincr = mmdd * 1.e6 + hhmmss
77 call set_alarm(tagname,nymdb,nhmsb,nincr)
78 enddo
79
80 return
81 end

  ViewVC Help
Powered by ViewVC 1.1.22