]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MINICERN/packlib/kernlib/kerngen/tcgen/lorenf.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / MINICERN / packlib / kernlib / kerngen / tcgen / lorenf.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1996/02/15 17:49:49 mclareni
6* Kernlib
7*
8*
9#include "kerngen/pilot.h"
10 SUBROUTINE LORENF (U,PS,PI,PF)
11C
12C CERN PROGLIB# U102 LORENF .VERSION KERNFOR 4.04 821124
13C ORIG. 20/08/75 L.PAPE
14C
15#if !defined(CERNLIB_B48M)
16 DOUBLE PRECISION PF4, FN
17#endif
18 DIMENSION PS(4),PI(4),PF(4)
19C
20 IF (PS(4).EQ.U) GO TO 17
21 PF4 = (PI(4)*PS(4)-PI(3)*PS(3)-PI(2)*PS(2)-PI(1)*PS(1)) / U
22 FN = (PF4+PI(4)) / (PS(4)+U)
23 PF(1)= PI(1) - FN*PS(1)
24 PF(2)= PI(2) - FN*PS(2)
25 PF(3)= PI(3) - FN*PS(3)
26 PF(4)= PF4
27 GO TO 18
28C
29 17 PF(1)= PI(1)
30 PF(2)= PI(2)
31 PF(3)= PI(3)
32 PF(4)= PI(4)
33C
34 18 CONTINUE
35C
36 RETURN
37C
38 END