]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MINICERN/packlib/kernlib/kerngen/tcgens/ucopy2.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / MINICERN / packlib / kernlib / kerngen / tcgens / ucopy2.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1996/02/15 17:50:15 mclareni
6* Kernlib
7*
8*
9#include "kerngen/pilot.h"
10 SUBROUTINE UCOPY2 (A,B,N)
11C
12C CERN PROGLIB# V301 UCOPY2 .VERSION KERNFOR 4.40 940929
13C ORIG. 01/01/68
14C MODIF. 26/02/91 JZ correct for bug in SGI
15C
16#if defined(CERNLIB_QINTCOPY)
17 INTEGER A(*),B(*)
18#endif
19#if !defined(CERNLIB_QINTCOPY)
20 DIMENSION A(*),B(*)
21#endif
22C
23C
24 IF (N.LT.2) GO TO 41
25 IA = LOCF (A)
26 IB = LOCF (B)
27 IF (IA-IB) 20,99,10
28C
29C-- End of B may overlap beginning of A
30 10 DO 15 I=1,N
31 15 B(I) = A(I)
32 RETURN
33C
34C-- End of A may overlap with beginning of B
35 20 DO 25 I=N,1,-1
36 25 B(I) = A(I)
37 RETURN
38
39C-- Case N=1, gives trouble on SGI
40
41 41 IF (N.LE.0) RETURN
42 B(1) = A(1)
43 99 RETURN
44 END