Skip to content

Commit

Permalink
CALL libgrpp_init().
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Jul 30, 2024
1 parent 43d0134 commit a62afac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/libgrpp_integrals.F
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MODULE libgrpp_integrals
USE orbital_pointers, ONLY: nco, &
ncoset
#if defined(__LIBGRPP)
USE libgrpp, ONLY: libgrpp_type1_integrals, libgrpp_type2_integrals, &
USE libgrpp, ONLY: libgrpp_init, libgrpp_type1_integrals, libgrpp_type2_integrals, &
libgrpp_type1_integrals_gradient, libgrpp_type2_integrals_gradient
#endif
#include "./base/base_uses.f90"
Expand Down Expand Up @@ -91,6 +91,8 @@ SUBROUTINE libgrpp_local_integrals(la_max_set, la_min_set, npgfa, rpgfa, zeta, &
REAL(dp), ALLOCATABLE, DIMENSION(:) :: tmp, tmpx, tmpy, tmpz
REAL(dp), DIMENSION(3) :: ra, rb, rc

CALL libgrpp_init()

calc_forces = .FALSE.
IF (PRESENT(pab) .AND. PRESENT(force_a) .AND. PRESENT(force_b)) calc_forces = .TRUE.

Expand Down Expand Up @@ -330,6 +332,8 @@ SUBROUTINE libgrpp_semilocal_integrals(la_max_set, la_min_set, npgfa, rpgfa, zet
REAL(dp), ALLOCATABLE, DIMENSION(:) :: tmp, tmpx, tmpz, tmpy
REAL(dp), DIMENSION(3) :: ra, rb, rc

CALL libgrpp_init()

calc_forces = .FALSE.
IF (PRESENT(pab) .AND. PRESENT(force_a) .AND. PRESENT(force_b)) calc_forces = .TRUE.

Expand Down Expand Up @@ -576,6 +580,8 @@ SUBROUTINE libgrpp_local_forces_ref(la_max_set, la_min_set, npgfa, rpgfa, zeta,
REAL(dp), ALLOCATABLE, DIMENSION(:, :) :: vab_f, tmpx, tmpy, tmpz
REAL(dp), DIMENSION(3) :: ra, rb, rc

CALL libgrpp_init()

!Contains the integrals necessary for the forces, with angular momenta from lmin-1 to lmax+1
ALLOCATE (vab_f(npgfa*ncoset(la_max_set + 1), npgfb*ncoset(lb_max_set + 1)))
vab_f(:, :) = 0.0_dp
Expand Down Expand Up @@ -776,6 +782,8 @@ SUBROUTINE libgrpp_semilocal_forces_ref(la_max_set, la_min_set, npgfa, rpgfa, ze
REAL(dp), ALLOCATABLE, DIMENSION(:, :) :: vab_f, tmpx, tmpy, tmpz
REAL(dp), DIMENSION(3) :: ra, rb, rc

CALL libgrpp_init()

!Contains the integrals necessary for the forces, with angular momenta from lmin-1 to lmax+1
ALLOCATE (vab_f(npgfa*ncoset(la_max_set + 1), npgfb*ncoset(lb_max_set + 1)))
vab_f(:, :) = 0.0_dp
Expand Down

0 comments on commit a62afac

Please sign in to comment.