NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3tagb.f
Go to the documentation of this file.
1C> @file
2C> @brief Operational job identifier
3C> @author J. Newell @date 1985-10-29
4
5C> Prints identifying information for operational
6C> codes. Called at the beginning of a code, w3tagb() prints
7C> the program name, the year and julian day of its
8C> compilation, and the responsible organization. On a 2nd
9C> line it prints the starting date-time. Called at the
10C> end of a job, entry routine, w3tage prints a line with the
11C> ending date-time and a 2nd line stating the program name
12C> and that it has ended.
13C>
14C> ### Program History Log:
15C> Date | Programmer | Comment
16C> -----|------------|--------
17C> 1985-10-29 | J. Newell | Initial.
18C> 1989-10-20 | Ralph Jones | Convert to cray cft77 fortran
19C> 1991-03-01 | Ralph Jones | Add machine name to ending line
20C> 1992-12-02 | Ralph Jones | Add start-ending time-date
21C> 1993-11-16 | Ralph Jones | Add day of year, day of week, and julian day number.
22C> 1997-12-24 | M. Farley | Print statements modified for 4-digit yr
23C> 1998-03-17 | M. Farley | Replaced datimx with calls to w3locdat/w3doxdat
24C> 1999-01-29 | B. Vuong | Converted to ibm rs/6000 sp
25C> 1999-06-17 | A. Spruill | Adjusted the size of program name to accommodate
26C> the 20 character name convention on the ibm sp.
27C> 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.
28C> 2012-10-18 | Vuong | Remove print statement 604
29C> 2013-02-06 | Vuong | Modified print statement 604
30c>
31C> @param[in] PROG Program name character*1
32C> @param[in] KYR Year of compilation integer
33C> @param[in] JD Julian day of compilation integer
34C> @param[in] LF Hundreths of julian day of compilation
35C> integer (range is 0 to 99 inclusive)
36C> @param[in] ORG Organization code (such as wd42)
37C> character*1
38C>
39C> @remark Full word used in order to have at least
40C> seven decimal digits accuracy for value of ddate.
41C> subprogram clock and date may differ for each type
42C> computer. you may have to change them for another
43C> type of computer.
44C>
45C> @author J. Newell @date 1985-10-29
46 SUBROUTINE w3tagb(PROG,KYR,JD,LF,ORG)
47C
48 CHARACTER *(*) PROG,ORG
49 CHARACTER * 3 JMON(12)
50 CHARACTER * 3 DAYW(7)
51C
52 INTEGER IDAT(8), JDOW, JDOY, JDAY
53C
54 SAVE
55C
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'/
59C
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)
73C
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
81C
82 entry w3tage(prog)
83C
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.')
92C 604 FORMAT(5X,'PROGRAM ',A,' HAS ENDED. CRAY J916/2048')
93C 604 FORMAT(5X,'PROGRAM ',A,' HAS ENDED. CRAY Y-MP EL2/256')
94 print 605
95 605 FORMAT(10('* . * . '))
96
97 CALL summary()
98C
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