NCEPLIBS-w3emc  2.11.0
w3tagb.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Operational job identifier
3 C> @author J. Newell @date 1985-10-29
4 
5 C> Prints identifying information for operational
6 C> codes. Called at the beginning of a code, w3tagb() prints
7 C> the program name, the year and julian day of its
8 C> compilation, and the responsible organization. On a 2nd
9 C> line it prints the starting date-time. Called at the
10 C> end of a job, entry routine, w3tage prints a line with the
11 C> ending date-time and a 2nd line stating the program name
12 C> and that it has ended.
13 C>
14 C> ### Program History Log:
15 C> Date | Programmer | Comment
16 C> -----|------------|--------
17 C> 1985-10-29 | J. Newell | Initial.
18 C> 1989-10-20 | Ralph Jones | Convert to cray cft77 fortran
19 C> 1991-03-01 | Ralph Jones | Add machine name to ending line
20 C> 1992-12-02 | Ralph Jones | Add start-ending time-date
21 C> 1993-11-16 | Ralph Jones | Add day of year, day of week, and julian day number.
22 C> 1997-12-24 | M. Farley | Print statements modified for 4-digit yr
23 C> 1998-03-17 | M. Farley | Replaced datimx with calls to w3locdat/w3doxdat
24 C> 1999-01-29 | B. Vuong | Converted to ibm rs/6000 sp
25 C> 1999-06-17 | A. Spruill | Adjusted the size of program name to accommodate
26 C> the 20 character name convention on the ibm sp.
27 C> 1999-08-24 | Gilbert | added call to start() in w3tagb and a call to summary() in w3tage to print out a resource summary list for the program using w3tags.
28 C> 2012-10-18 | Vuong | Remove print statement 604
29 C> 2013-02-06 | Vuong | Modified print statement 604
30 c>
31 C> @param[in] PROG Program name character*1
32 C> @param[in] KYR Year of compilation integer
33 C> @param[in] JD Julian day of compilation integer
34 C> @param[in] LF Hundreths of julian day of compilation
35 C> integer (range is 0 to 99 inclusive)
36 C> @param[in] ORG Organization code (such as wd42)
37 C> character*1
38 C>
39 C> @remark Full word used in order to have at least
40 C> seven decimal digits accuracy for value of ddate.
41 C> subprogram clock and date may differ for each type
42 C> computer. you may have to change them for another
43 C> type of computer.
44 C>
45 C> @author J. Newell @date 1985-10-29
46  SUBROUTINE w3tagb(PROG,KYR,JD,LF,ORG)
47 C
48  CHARACTER *(*) PROG,ORG
49  CHARACTER * 3 JMON(12)
50  CHARACTER * 3 DAYW(7)
51 C
52  INTEGER IDAT(8), JDOW, JDOY, JDAY
53 C
54  SAVE
55 C
56  DATA dayw/'SUN','MON','TUE','WEN','THU','FRI','SAT'/
57  DATA jmon /'JAN','FEB','MAR','APR','MAY','JUN',
58  & 'JUL','AUG','SEP','OCT','NOV','DEC'/
59 C
60  CALL start()
61 
62  dyr = kyr
63  dyr = 1.0e+03 * dyr
64  djd = jd
65  dlf = lf
66  dlf = 1.0e-02 * dlf
67  ddate = dyr + djd + dlf
68  print 600
69  600 FORMAT(//,10('* . * . '))
70  print 601, prog, ddate, org
71  601 FORMAT(5x,'PROGRAM ',a,' HAS BEGUN. COMPILED ',f10.2,
72  & 5x, 'ORG: ',a)
73 C
74  CALL w3locdat(idat)
75  CALL w3doxdat(idat,jdow,jdoy,jday)
76  print 602, jmon(idat(2)),idat(3),idat(1),idat(5),idat(6),
77  & idat(7),idat(8),jdoy,dayw(jdow),jday
78  602 FORMAT(5x,'STARTING DATE-TIME ',a3,1x,i2.2,',',
79  & i4.4,2x,2(i2.2,':'),i2.2,'.',i3.3,2x,i3,2x,a3,2x,i8,//)
80  RETURN
81 C
82  entry w3tage(prog)
83 C
84  CALL w3locdat(idat)
85  CALL w3doxdat(idat,jdow,jdoy,jday)
86  print 603, jmon(idat(2)),idat(3),idat(1),idat(5),idat(6),
87  & idat(7),idat(8),jdoy,dayw(jdow),jday
88  603 FORMAT(//,5x,'ENDING DATE-TIME ',a3,1x,i2.2,',',
89  & i4.4,2x,2(i2.2,':'),i2.2,'.',i3.3,2x,i3,2x,a3,2x,i8)
90  print 604, prog
91  604 FORMAT(5x,'PROGRAM ',a,' HAS ENDED.')
92 C 604 FORMAT(5X,'PROGRAM ',A,' HAS ENDED. CRAY J916/2048')
93 C 604 FORMAT(5X,'PROGRAM ',A,' HAS ENDED. CRAY Y-MP EL2/256')
94  print 605
95  605 FORMAT(10('* . * . '))
96 
97  CALL summary()
98 C
99  RETURN
100  END
subroutine w3doxdat(idat, jdow, jdoy, jday)
Program history log:
Definition: w3doxdat.f:17
subroutine w3locdat(idat)
This subprogram returns the local date and time in the ncep absolute date and time data structure.
Definition: w3locdat.f:23
subroutine w3tagb(PROG, KYR, JD, LF, ORG)
Prints identifying information for operational codes.
Definition: w3tagb.f:47