-
Notifications
You must be signed in to change notification settings - Fork 0
/
cqden.f
executable file
·30 lines (30 loc) · 964 Bytes
/
cqden.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SUBROUTINE CQDEN()
IMPLICIT DOUBLE PRECISION (A-H,O-Z)
INCLUDE 'SIZES'
COMMON / SOLV / FEPSI,RDS,DISEX2,NSPA,NPS,NPS2,NDEN,
1 COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
2 TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
3 BH(LENABC)
COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
1 NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
2 NCLOSE,NOPEN,NDUMY,FRACT
COMMON /DENSTY/ P(MPACK)
COMMON /CORE / CORE(107)
IDEN=0
DO 30 I=1,NUMAT
IA=NFIRST(I)
IDEL=NLAST(I)-IA
IM=(IA*(IA+1))/2
IDEN=IDEN+1
QDEN(IDEN)=CORE(NAT(I))-P(IM)
DO 20 IC=1,IDEL
IM=IM+IA-1
DO 10 ID=0,IC
IM=IM+1
IDEN=IDEN+1
QDEN(IDEN)=-P(IM)
10 CONTINUE
20 CONTINUE
30 CONTINUE
RETURN
END