11
11
CHARACTER*(*) AUTHOR
12
12
INTEGER IREL, NSPIN
13
DOUBLE PRECISION D(NSPIN), DECDD, DECDGD, DEXDD, DEXDGD,
13
cc DOUBLE PRECISION D(NSPIN), DECDD, DECDGD, DEXDD, DEXDGD,
14
cc . EPSC, EPSX, GD(3,NSPIN)
15
DOUBLE PRECISION D(NSPIN), DECDD(NSPIN), DECDGD(3,NSPIN),
16
. DEXDD(NSPIN), DEXDGD(3,NSPIN),
14
17
. EPSC, EPSX, GD(3,NSPIN)
16
19
IF (AUTHOR.EQ.'PBE' .OR. AUTHOR.EQ.'pbe') THEN
17
20
CALL PBEXC( IREL, NSPIN, D, GD,
18
21
. EPSX, EPSC, DEXDD, DECDD, DEXDGD, DECDGD )
22
ELSE IF (AUTHOR.EQ.'LYP'.OR.AUTHOR.EQ.'lyp') THEN
23
CALL BLYPXC(NSPIN,D,GD,EPSX,EPSC,dEXdd,dECdd,dEXdgd,dECdgd)
20
25
WRITE(6,*) 'GGAXC: Unknown author ', AUTHOR