source: trunk/MagicSoft/Simulation/Corsika/Mmcs/prtime.f@ 1105

Last change on this file since 1105 was 286, checked in by harald, 25 years ago
This is the start point for further developments of the Magic Monte Carlo Simulation written by Jose Carlos Gonzales. Now it is under control of one CVS repository for the whole collaboration. Everyone should use this CVS repository for further developments.
File size: 2.1 KB
Line 
1 SUBROUTINE PRTIME(TTIME)
2
3C-----------------------------------------------------------------------
4C PR(INT) TIME
5C
6C PRINTS PRESENT DATE AND TIME AND GIVES IT IN A FORMAT SUITED FOR THE
7C RUNHEADER AND EVENTHEADER
8C THIS SUBROUTINE IS CALLED FROM MAIN AND START
9C ARGUMENT:
10C TTIME = TIME (YYMMDD)
11C
12C IF OUR DATE ROUTINE DOES NOT FIT TO YOUR COMPUTER, PLEASE REPLACE
13C IT BY A SUITABLE ROUTINE OF YOUR SYSTEM
14C-----------------------------------------------------------------------
15
16 IMPLICIT NONE
17*KEEP,RUNPAR.
18 COMMON /RUNPAR/ FIXHEI,THICK0,HILOECM,HILOELB,
19 * STEPFC,NRRUN,NSHOW,PATAPE,MONIIN,
20 * MONIOU,MDEBUG,NUCNUC,
21 * CETAPE,
22 * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
23 * N1STTR,MDBASE,
24 * DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
25 * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
26 * ,GHEISH,GHESIG
27 COMMON /RUNPAC/ DSN,HOST,USER
28 DOUBLE PRECISION FIXHEI,THICK0,HILOECM,HILOELB
29 REAL STEPFC
30 INTEGER NRRUN,NSHOW,PATAPE,MONIIN,MONIOU,MDEBUG,NUCNUC,
31 * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
32 * N1STTR,MDBASE
33 INTEGER CETAPE
34 CHARACTER*79 DSN
35 CHARACTER*20 HOST,USER
36
37 LOGICAL DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
38 * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
39 * ,GHEISH,GHESIG
40*KEND.
41
42 DOUBLE PRECISION TTIME
43 INTEGER ID, IT, ISL1, ISL2, ISL3, ISL4, ISL5, ISL6
44
45C-----------------------------------------------------------------------
46
47C call jcdate (modified version 13-10-98)
48 CALL jcdate(ID, IT, ISL1, ISL2, ISL3, ISL4, ISL5, ISL6)
49 ttime = DBLE(ID)
50
51C format dd, mm, yy, hh, mm, ss
52 WRITE(MONIOU,100) ISL3,ISL2,ISL1,ISL4,ISL5,ISL6
53 100 FORMAT(' PRESENT TIME : ',
54 * I2,'.',I2.2,'.',I2.2,I4,':',I2.2,':',I2.2)
55
56c>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
57
58 RETURN
59 END
60
61
62
63
64
65
66
67
Note: See TracBrowser for help on using the repository browser.