2 ! { dg
-additional
-options
"-ffast-math -ftree-vectorize" }
3 SUBROUTINE SOBOOK
(MHSO
,HSOMAX
,MS
)
4 IMPLICIT DOUBLE PRECISION(A
-H
,O
-Z
)
5 COMPLEX*16 HSOT
,HSO1
(2)
6 PARAMETER (ZERO
=0.0D
+00,TWO
=2.0D
+00)
7 DIMENSION SOL1
(3,2),SOL2
(3)
12 HSO1
(IH
) = DCMPLX
(ZERO
,-SOL1
(3,IH
))
13 HSOT
= DCMPLX
(ZERO
,-SOL2
(3))
15 HSO1
(IH
) = DCMPLX
(-SOL1
(2,IH
),SOL1
(1,IH
))/SQRT2
16 HSOT
= DCMPLX
(-SOL2
(2),SOL2
(1))/SQRT2
20 HSOMAX
=MAX
(HSOMAX
,ABS
(HSOT
))