Skip to content

Commit 600326e

Browse files
authored
Merge branch 'dev-stable' into dev-stable
2 parents b7e0ae6 + 5f50525 commit 600326e

24 files changed

+3376
-2511
lines changed

src/ao_basis/EZFIO.cfg

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,27 @@ doc: Use normalized primitive functions
6767
interface: ezfio, provider
6868
default: true
6969

70-
[ao_expoim_cosgtos]
70+
[use_cgtos]
71+
type: logical
72+
doc: If true, use cgtos for AO integrals
73+
interface: ezfio
74+
default: False
75+
76+
[ao_expo_im_cgtos]
7177
type: double precision
72-
doc: imag part for Exponents for each primitive of each cosGTOs |AO|
78+
doc: imag part for Exponents for each primitive of each cGTOs |AO|
7379
size: (ao_basis.ao_num,ao_basis.ao_prim_num_max)
7480
interface: ezfio, provider
7581

76-
[use_cosgtos]
77-
type: logical
78-
doc: If true, use cosgtos for AO integrals
79-
interface: ezfio
80-
default: False
82+
[ao_expo_pw]
83+
type: double precision
84+
doc: plane wave part for each primitive GTOs |AO|
85+
size: (3,ao_basis.ao_num,ao_basis.ao_prim_num_max)
86+
interface: ezfio, provider
87+
88+
[ao_expo_phase]
89+
type: double precision
90+
doc: phase shift for each primitive GTOs |AO|
91+
size: (3,ao_basis.ao_num,ao_basis.ao_prim_num_max)
92+
interface: ezfio, provider
8193

src/ao_basis/cgtos.irp.f

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
BEGIN_PROVIDER [logical, use_cgtos]
3+
4+
implicit none
5+
6+
BEGIN_DOC
7+
! If true, use cgtos for AO integrals
8+
END_DOC
9+
10+
logical :: has
11+
PROVIDE ezfio_filename
12+
use_cgtos = .False.
13+
if (mpi_master) then
14+
call ezfio_has_ao_basis_use_cgtos(has)
15+
if (has) then
16+
! write(6,'(A)') '.. >>>>> [ IO READ: use_cgtos ] <<<<< ..'
17+
call ezfio_get_ao_basis_use_cgtos(use_cgtos)
18+
else
19+
call ezfio_set_ao_basis_use_cgtos(use_cgtos)
20+
endif
21+
endif
22+
IRP_IF MPI_DEBUG
23+
print *, irp_here, mpi_rank
24+
call MPI_BARRIER(MPI_COMM_WORLD, ierr)
25+
IRP_ENDIF
26+
IRP_IF MPI
27+
include 'mpif.h'
28+
integer :: ierr
29+
call MPI_BCAST( use_cgtos, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
30+
if (ierr /= MPI_SUCCESS) then
31+
stop 'Unable to read use_cgtos with MPI'
32+
endif
33+
IRP_ENDIF
34+
35+
! call write_time(6)
36+
37+
END_PROVIDER

src/ao_basis/cosgtos.irp.f

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/ao_one_e_ints/ao_overlap.irp.f

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
! ---
33

4-
BEGIN_PROVIDER [ double precision, ao_overlap , (ao_num, ao_num) ]
5-
&BEGIN_PROVIDER [ double precision, ao_overlap_x, (ao_num, ao_num) ]
6-
&BEGIN_PROVIDER [ double precision, ao_overlap_y, (ao_num, ao_num) ]
7-
&BEGIN_PROVIDER [ double precision, ao_overlap_z, (ao_num, ao_num) ]
4+
BEGIN_PROVIDER [double precision, ao_overlap , (ao_num, ao_num)]
5+
&BEGIN_PROVIDER [double precision, ao_overlap_x, (ao_num, ao_num)]
6+
&BEGIN_PROVIDER [double precision, ao_overlap_y, (ao_num, ao_num)]
7+
&BEGIN_PROVIDER [double precision, ao_overlap_z, (ao_num, ao_num)]
88

99
BEGIN_DOC
1010
! Overlap between atomic basis functions:
@@ -30,15 +30,14 @@
3030

3131
else
3232

33-
if(use_cosgtos) then
34-
!print*, ' use_cosgtos for ao_overlap ?', use_cosgtos
33+
if(use_cgtos) then
3534

3635
do j = 1, ao_num
3736
do i = 1, ao_num
38-
ao_overlap (i,j) = ao_overlap_cosgtos (i,j)
39-
ao_overlap_x(i,j) = ao_overlap_cosgtos_x(i,j)
40-
ao_overlap_y(i,j) = ao_overlap_cosgtos_y(i,j)
41-
ao_overlap_z(i,j) = ao_overlap_cosgtos_z(i,j)
37+
ao_overlap (i,j) = ao_overlap_cgtos (i,j)
38+
ao_overlap_x(i,j) = ao_overlap_cgtos_x(i,j)
39+
ao_overlap_y(i,j) = ao_overlap_cgtos_y(i,j)
40+
ao_overlap_z(i,j) = ao_overlap_cgtos_z(i,j)
4241
enddo
4342
enddo
4443

@@ -49,7 +48,7 @@
4948
!$OMP DEFAULT(NONE) &
5049
!$OMP PRIVATE(A_center,B_center,power_A,power_B,&
5150
!$OMP overlap_x,overlap_y, overlap_z, overlap, &
52-
!$OMP alpha, beta,i,j,c) &
51+
!$OMP alpha, beta,i,j,n,l,c) &
5352
!$OMP SHARED(nucl_coord,ao_power,ao_prim_num, &
5453
!$OMP ao_overlap_x,ao_overlap_y,ao_overlap_z,ao_overlap,ao_num,ao_coef_normalized_ordered_transp,ao_nucl, &
5554
!$OMP ao_expo_ordered_transp,dim1)

0 commit comments

Comments
 (0)