NCEPLIBS-w3emc  2.9.2
w3tagb.f
1  SUBROUTINE w3tagb(PROG,KYR,JD,LF,ORG)
2 c$$$ subprogram documentation block
3 c
4 c subprogram: w3tagb operational job identifier
5 c prgmmr: farley org: np11 date: 1998-03-17
6 c
7 c abstract: prints identifying information for operational
8 c codes. called at the beginning of a code, w3tagb prints
9 c the program name, the year and julian day of its
10 c compilation, and the responsible organization. on a 2nd
11 c line it prints the starting date-time. called at the
12 c END OF A JOB, entry routine, W3TAGE PRINTS A LINE WITH the
13 c ending date-time and a 2nd line stating the program name
14 c and that it has ended.
15 c
16 c PROGRAM history log:
17 c 85-10-29 j.newell
18 c 89-10-20 r.e.jones convert to cray cft77 fortran
19 c 91-03-01 r.e.jones add machine name to ending line
20 c 92-12-02 r.e.jones add start-ending time-date
21 c 93-11-16 r.e.jones add day of year, day of week, and julian day
22 c number.
23 c 97-12-24 m.farley print statements modified for 4-digit yr
24 c 98-03-17 m.farley replaced datimx with calls to w3locdat/w3doxdat
25 c 99-01-29 b. vuong converted to ibm rs/6000 sp
26 c
27 c 99-06-17 a. spruill adjusted the SIZE of PROGRAM name to accommodate
28 c the 20 CHARACTER NAME CONVENTION ON THE IBM SP.
29 c 1999-08-24 gilbert added call to start() in w3tagb and a call
30 c to summary() in w3tage to print out a
31 c resource summary list for the program using
32 c w3tags.
33 c 2012-10-18 vuong remove print statement 604
34 c 2013-02-06 vuong modified print statement 604
35 c
36 c usage: CALL w3tagb(prog, kyr, jd, lf, org)
37 c CALL w3tage(prog)
38 c
39 c input variables:
40 c names INTERFACE description of variables and types
41 c ------ --------- -----------------------------------------------
42 c prog arg list PROGRAM name character*1
43 c kyr arg list year of compilation integer
44 c jd arg list julian day of compilation integer
45 c lf arg list hundreths of julian day of compilation
46 c integer(range is 0 to 99 inclusive)
47 c org arg list organization code(such as wd42)
48 c character*1
49 c
50 c output variables:
51 c names INTERFACE description of variables and types
52 c ----------------------------------------------------------------
53 c ddate print year and julian day(nearest hundreth)
54 c file of compilation real
55 c
56 c subprograms called: clock, date
57 c
58 c remarks: full word used in order to have at least
59 c seven decimal digits accuracy for VALUE of ddate.
60 c subprogram clock and date may differ for each TYPE
61 c computer. you may have to change them for another
62 c TYPE of computer.
63 c
64 c attributes:
65 c language: fortran 90
66 c
67 c$$$
68 c
69  CHARACTER *(*) PROG,ORG
70  CHARACTER * 3 JMON(12)
71  CHARACTER * 3 DAYW(7)
72 c
73  INTEGER IDAT(8), JDOW, JDOY, JDAY
74 c
75  SAVE
76 c
77  DATA dayw/'SUN','MON','TUE','WEN','THU','FRI','SAT'/
78  DATA jmon /'JAN','FEB','MAR','APR','MAY','JUN',
79  & 'JUL','AUG','SEP','OCT','NOV','DEC'/
80 c
81  CALL start()
82 
83  dyr = kyr
84  dyr = 1.0e+03 * dyr
85  djd = jd
86  dlf = lf
87  dlf = 1.0e-02 * dlf
88  ddate = dyr + djd + dlf
89  print 600
90  600 FORMAT(//,10('* . * . '))
91  print 601, prog, ddate, org
92  601 FORMAT(5x,'PROGRAM ',a,' HAS BEGUN. COMPILED ',f10.2,
93  & 5x, 'ORG: ',a)
94 c
95  CALL w3locdat(idat)
96  CALL w3doxdat(idat,jdow,jdoy,jday)
97  print 602, jmon(idat(2)),idat(3),idat(1),idat(5),idat(6),
98  & idat(7),idat(8),jdoy,dayw(jdow),jday
99  602 FORMAT(5x,'STARTING DATE-TIME ',a3,1x,i2.2,',',
100  & i4.4,2x,2(i2.2,':'),i2.2,'.',i3.3,2x,i3,2x,a3,2x,i8,//)
101  RETURN
102 c
103  entry w3tage(prog)
104 c
105  CALL w3locdat(idat)
106  CALL w3doxdat(idat,jdow,jdoy,jday)
107  print 603, jmon(idat(2)),idat(3),idat(1),idat(5),idat(6),
108  & idat(7),idat(8),jdoy,dayw(jdow),jday
109  603 FORMAT(//,5x,'ENDING DATE-TIME ',a3,1x,i2.2,',',
110  & i4.4,2x,2(i2.2,':'),i2.2,'.',i3.3,2x,i3,2x,a3,2x,i8)
111  print 604, prog
112  604 FORMAT(5x,'PROGRAM ',a,' HAS ENDED.')
113 c 604 FORMAT(5x,'PROGRAM ',a,' HAS ENDED. CRAY J916/2048')
114 c 604 FORMAT(5x,'PROGRAM ',a,' HAS ENDED. CRAY Y-MP EL2/256')
115  print 605
116  605 FORMAT(10('* . * . '))
117 
118  CALL summary()
119 c
120  RETURN
121  END
w3doxdat
subroutine w3doxdat(idat, jdow, jdoy, jday)
Program history log:
Definition: w3doxdat.f:17