Skip to content

Commit

Permalink
Adapt tensor infrastructure to libint refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pseewald committed Nov 26, 2019
1 parent c38db1d commit 57f80a6
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 114 deletions.
8 changes: 7 additions & 1 deletion src/mp2_integrals.F
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ MODULE mp2_integrals
get_group_dist,&
group_dist_d1_type,&
release_group_dist
USE hfx_types, ONLY: hfx_potential_type
USE input_constants, ONLY: do_eri_gpw,&
do_eri_mme,&
do_eri_os,&
Expand Down Expand Up @@ -303,6 +304,7 @@ SUBROUTINE mp2_ri_gpw_compute_in(BIb_C, BIb_C_gw, BIb_C_bse_ij, BIb_C_bse_ab, gd
matrix_in_jm_beta, matrix_in_jnu, matrix_in_jnu_beta
TYPE(dft_control_type), POINTER :: dft_control
TYPE(gto_basis_set_p_type), DIMENSION(:), POINTER :: basis_set_ao, basis_set_ri_aux
TYPE(hfx_potential_type) :: pot_par
TYPE(neighbor_list_3c_type) :: nl_3c
TYPE(pw_env_type), POINTER :: pw_env_sub
TYPE(pw_p_type) :: pot_g, psi_L, rho_g, rho_r
Expand Down Expand Up @@ -854,12 +856,14 @@ SUBROUTINE mp2_ri_gpw_compute_in(BIb_C, BIb_C_gw, BIb_C_bse_ij, BIb_C_bse_ab, gd
ENDDO
ENDDO
pot_par%potential_type = do_potential_id
CALL build_3c_integrals(t_3c_overl_int, &
qs_env%mp2_env%mp2_gpw%eps_filter, &
qs_env, &
nl_3c, &
basis_i=basis_set_ri_aux, &
basis_j=basis_set_ao, basis_k=basis_set_ao, &
potential_parameter=pot_par, &
do_kpoints=do_kpoints_cubic_RPA)
DEALLOCATE (basis_set_ri_aux, basis_set_ao)
Expand Down Expand Up @@ -1079,6 +1083,7 @@ SUBROUTINE create_tensor_O_3c(t_3c_O, mp_comm_t3c, ao_sizes_1, ao_sizes_2, sizes
LOGICAL :: kp
TYPE(dbcsr_t_distribution_type) :: dist
TYPE(distribution_3d_type) :: dist_3d
TYPE(hfx_potential_type) :: pot_par
TYPE(particle_type), DIMENSION(:), POINTER :: particle_set
IF (PRESENT(do_kpoints)) THEN
Expand Down Expand Up @@ -1113,8 +1118,9 @@ SUBROUTINE create_tensor_O_3c(t_3c_O, mp_comm_t3c, ao_sizes_1, ao_sizes_2, sizes
nkind, particle_set, mp_comm_t3c_2, own_comm=.TRUE.)
! we rely on symmetry of the two AO-indices only if no k-points
pot_par%potential_type = do_potential_id
CALL build_3c_neighbor_lists(nl_3c, basis_RI, basis_ao_1, basis_ao_2, &
dist_3d, "RPA_3c_nl", qs_env, &
dist_3d, pot_par, "RPA_3c_nl", qs_env, &
sym_jk=.NOT. kp, own_dist=.TRUE.)
ENDIF
Expand Down

0 comments on commit 57f80a6

Please sign in to comment.