5 * Revision 1.1.1.1 1995/10/24 10:21:19 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.21 by S.Giani
12 SUBROUTINE GSKINU (ITRA,NWBUF,UBUF,IADR)
14 C. ******************************************************************
16 C * Stores User's informations in JKINE user bank, *
17 C * for track ITRA. (ITRA must be an already existing track) *
18 C * IADR is the stating location within the bank. *
20 C * on output IADR is the new starting location *
22 C. * ==>Called by : <USER> *
25 C. ******************************************************************
27 #include "geant321/gcbank.inc"
28 #include "geant321/gcunit.inc"
29 #include "geant321/gcflag.inc"
33 IF ((JKINE.GT.0).AND.(LQ(JKINE-ITRA).GT.0)) THEN
37 IF (LQ(JK-1).EQ.0) THEN
38 CALL MZBOOK (IXDIV,JKU,JK,-1,'KINU',0,0,NDATA,3,0)
42 NFREE = IQ(JKU-1) - NDATA
43 IF (NFREE.LT.0) CALL MZPUSH (IXDIV,JKU,0,-NFREE,'I')
47 Q(JKU+IADR+I) = UBUF(I)
54 WRITE(CHMAIL,1000) IEVENT,ITRA
58 1000 FORMAT(' **** GSKINU: No JKINE bank in memory for ievent:',I7,
59 & ' or track:',I4,'does not exist')