mirror of
https://github.com/pfloos/quack
synced 2025-01-03 10:05:49 +01:00
numgrid is workin
This commit is contained in:
parent
ddb940de48
commit
e3af2bb0aa
54
input/basis
54
input/basis
@ -1,30 +1,38 @@
|
|||||||
1 6
|
1 6
|
||||||
S 8
|
S 8
|
||||||
1 2940.0000000 0.0006800
|
1 1469.0000000 0.0007660
|
||||||
2 441.2000000 0.0052360
|
2 220.5000000 0.0058920
|
||||||
3 100.5000000 0.0266060
|
3 50.2600000 0.0296710
|
||||||
4 28.4300000 0.0999930
|
4 14.2400000 0.1091800
|
||||||
5 9.1690000 0.2697020
|
5 4.5810000 0.2827890
|
||||||
6 3.1960000 0.4514690
|
6 1.5800000 0.4531230
|
||||||
7 1.1590000 0.2950740
|
7 0.5640000 0.2747740
|
||||||
8 0.1811000 0.0125870
|
8 0.0734500 0.0097510
|
||||||
S 8
|
S 8
|
||||||
1 2940.0000000 -0.0001230
|
1 1469.0000000 -0.0001200
|
||||||
2 441.2000000 -0.0009660
|
2 220.5000000 -0.0009230
|
||||||
3 100.5000000 -0.0048310
|
3 50.2600000 -0.0046890
|
||||||
4 28.4300000 -0.0193140
|
4 14.2400000 -0.0176820
|
||||||
5 9.1690000 -0.0532800
|
5 4.5810000 -0.0489020
|
||||||
6 3.1960000 -0.1207230
|
6 1.5800000 -0.0960090
|
||||||
7 1.1590000 -0.1334350
|
7 0.5640000 -0.1363800
|
||||||
8 0.1811000 0.5307670
|
8 0.0734500 0.5751020
|
||||||
S 1
|
S 1
|
||||||
1 0.0589000 1.0000000
|
1 0.0280500 1.0000000
|
||||||
P 3
|
P 3
|
||||||
1 3.6190000 0.0291110
|
1 1.5340000 0.0227840
|
||||||
2 0.7110000 0.1693650
|
2 0.2749000 0.1391070
|
||||||
3 0.1951000 0.5134580
|
3 0.0736200 0.5003750
|
||||||
P 1
|
P 1
|
||||||
1 0.0601800 1.0000000
|
1 0.0240300 1.0000000
|
||||||
D 1
|
D 1
|
||||||
1 0.2380000 1.0000000
|
1 0.1239000 1.0000000
|
||||||
|
2 3
|
||||||
|
S 3
|
||||||
|
1 13.0100000 0.0196850
|
||||||
|
2 1.9620000 0.1379770
|
||||||
|
3 0.4446000 0.4781480
|
||||||
|
S 1
|
||||||
|
1 0.1220000 1.0000000
|
||||||
|
P 1
|
||||||
|
1 0.7270000 1.0000000
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# Hartree-Fock = 666
|
# Hartree-Fock = 666
|
||||||
1 RVWN5
|
1 RVWN5
|
||||||
# quadrature grid SG-n
|
# quadrature grid SG-n
|
||||||
1
|
2
|
||||||
# Number of states in ensemble (nEns)
|
# Number of states in ensemble (nEns)
|
||||||
2
|
2
|
||||||
# Ensemble weights: wEns(1),...,wEns(nEns-1)
|
# Ensemble weights: wEns(1),...,wEns(nEns-1)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# nAt nEla nElb nCore nRyd
|
# nAt nEla nElb nCore nRyd
|
||||||
1 2 2 0 0
|
2 2 2 0 0
|
||||||
# Znuc x y z
|
# Znuc x y z
|
||||||
Be 0.0 0.0 0.0
|
Li 0. 0. 0.
|
||||||
|
H 0. 0. 3.099
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
1
|
2
|
||||||
|
|
||||||
Be 0.0000000000 0.0000000000 0.0000000000
|
Li 0.0000000000 0.0000000000 0.0000000000
|
||||||
|
H 0.0000000000 0.0000000000 1.6399202947
|
||||||
|
54
input/weight
54
input/weight
@ -1,30 +1,38 @@
|
|||||||
1 6
|
1 6
|
||||||
S 8
|
S 8
|
||||||
1 2940.0000000 0.0006800
|
1 1469.0000000 0.0007660
|
||||||
2 441.2000000 0.0052360
|
2 220.5000000 0.0058920
|
||||||
3 100.5000000 0.0266060
|
3 50.2600000 0.0296710
|
||||||
4 28.4300000 0.0999930
|
4 14.2400000 0.1091800
|
||||||
5 9.1690000 0.2697020
|
5 4.5810000 0.2827890
|
||||||
6 3.1960000 0.4514690
|
6 1.5800000 0.4531230
|
||||||
7 1.1590000 0.2950740
|
7 0.5640000 0.2747740
|
||||||
8 0.1811000 0.0125870
|
8 0.0734500 0.0097510
|
||||||
S 8
|
S 8
|
||||||
1 2940.0000000 -0.0001230
|
1 1469.0000000 -0.0001200
|
||||||
2 441.2000000 -0.0009660
|
2 220.5000000 -0.0009230
|
||||||
3 100.5000000 -0.0048310
|
3 50.2600000 -0.0046890
|
||||||
4 28.4300000 -0.0193140
|
4 14.2400000 -0.0176820
|
||||||
5 9.1690000 -0.0532800
|
5 4.5810000 -0.0489020
|
||||||
6 3.1960000 -0.1207230
|
6 1.5800000 -0.0960090
|
||||||
7 1.1590000 -0.1334350
|
7 0.5640000 -0.1363800
|
||||||
8 0.1811000 0.5307670
|
8 0.0734500 0.5751020
|
||||||
S 1
|
S 1
|
||||||
1 0.0589000 1.0000000
|
1 0.0280500 1.0000000
|
||||||
P 3
|
P 3
|
||||||
1 3.6190000 0.0291110
|
1 1.5340000 0.0227840
|
||||||
2 0.7110000 0.1693650
|
2 0.2749000 0.1391070
|
||||||
3 0.1951000 0.5134580
|
3 0.0736200 0.5003750
|
||||||
P 1
|
P 1
|
||||||
1 0.0601800 1.0000000
|
1 0.0240300 1.0000000
|
||||||
D 1
|
D 1
|
||||||
1 0.2380000 1.0000000
|
1 0.1239000 1.0000000
|
||||||
|
2 3
|
||||||
|
S 3
|
||||||
|
1 13.0100000 0.0196850
|
||||||
|
2 1.9620000 0.1379770
|
||||||
|
3 0.4446000 0.4781480
|
||||||
|
S 1
|
||||||
|
1 0.1220000 1.0000000
|
||||||
|
P 1
|
||||||
|
1 0.7270000 1.0000000
|
||||||
|
@ -30,6 +30,7 @@ subroutine build_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,
|
|||||||
|
|
||||||
! Local variables
|
! Local variables
|
||||||
|
|
||||||
|
logical :: dump_grid = .false.
|
||||||
integer :: iNuc
|
integer :: iNuc
|
||||||
integer :: iG
|
integer :: iG
|
||||||
|
|
||||||
@ -66,8 +67,8 @@ subroutine build_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,
|
|||||||
num_points = numgrid_get_num_grid_points(context)
|
num_points = numgrid_get_num_grid_points(context)
|
||||||
|
|
||||||
call numgrid_get_grid(context,nNuc,center_index,rNuc(:,1),rNuc(:,2),rNuc(:,3),int(ZNuc(:)), &
|
call numgrid_get_grid(context,nNuc,center_index,rNuc(:,1),rNuc(:,2),rNuc(:,3),int(ZNuc(:)), &
|
||||||
root(1,iG+1:num_points),root(2,iG+1:num_points),root(3,iG+1:num_points), &
|
root(1,iG+1:iG+num_points),root(2,iG+1:iG+num_points),root(3,iG+1:iG+num_points), &
|
||||||
weight(iG+1:num_points))
|
weight(iG+1:iG+num_points))
|
||||||
|
|
||||||
iG = iG + num_points
|
iG = iG + num_points
|
||||||
|
|
||||||
@ -81,13 +82,17 @@ subroutine build_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,
|
|||||||
|
|
||||||
! Print grid
|
! Print grid
|
||||||
|
|
||||||
write(*,*) ' ***********************'
|
if(dump_grid) then
|
||||||
write(*,*) ' *** QUADRATURE GRID ***'
|
|
||||||
write(*,*) ' ***********************'
|
write(*,*) ' ***********************'
|
||||||
write(*,'(A10,3X,3A15)') 'Grid point','X','Y','Z'
|
write(*,*) ' *** QUADRATURE GRID ***'
|
||||||
do iG=1,nGrid
|
write(*,*) ' ***********************'
|
||||||
write(*,'(I10,3X,4F15.10)') iG,weight(iG),root(:,iG)
|
write(*,'(A10,3X,3A15)') 'Grid point','X','Y','Z'
|
||||||
end do
|
do iG=1,nGrid
|
||||||
write(*,*)
|
write(*,'(I10,3X,4F15.10)') iG,weight(iG),root(:,iG)
|
||||||
|
end do
|
||||||
|
write(*,*)
|
||||||
|
|
||||||
|
end if
|
||||||
|
|
||||||
end subroutine build_grid
|
end subroutine build_grid
|
||||||
|
@ -134,17 +134,17 @@ program eDFT
|
|||||||
! Construct quadrature grid
|
! Construct quadrature grid
|
||||||
!------------------------------------------------------------------------
|
!------------------------------------------------------------------------
|
||||||
call read_grid(SGn,radial_precision,nRad,nAng,nGrid)
|
call read_grid(SGn,radial_precision,nRad,nAng,nGrid)
|
||||||
nGrid = nRad*nAng
|
! nGrid = nRad*nAng
|
||||||
|
|
||||||
! call allocate_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,min_exponent,max_exponent, &
|
call allocate_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,min_exponent,max_exponent, &
|
||||||
! radial_precision,nRad,nAng,nGrid)
|
radial_precision,nRad,nAng,nGrid)
|
||||||
|
|
||||||
allocate(root(ncart,nGrid),weight(nGrid))
|
allocate(root(ncart,nGrid),weight(nGrid))
|
||||||
|
|
||||||
call quadrature_grid(nRad,nAng,nGrid,root,weight)
|
! call quadrature_grid(nRad,nAng,nGrid,root,weight)
|
||||||
|
|
||||||
! call build_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,min_exponent,max_exponent, &
|
call build_grid(nNuc,ZNuc,rNuc,nShell,TotAngMomShell,ExpShell,max_ang_mom,min_exponent,max_exponent, &
|
||||||
! radial_precision,nRad,nAng,nGrid,weight,root)
|
radial_precision,nRad,nAng,nGrid,weight,root)
|
||||||
|
|
||||||
!------------------------------------------------------------------------
|
!------------------------------------------------------------------------
|
||||||
! Calculate AO values at grid points
|
! Calculate AO values at grid points
|
||||||
|
Loading…
Reference in New Issue
Block a user