-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Description
Segmentation fault occurs in hf_and_locXC part when using BareHfromScratch with covariant dipoles (screenshot 1).
"yambo_sc" received signal SIGSEGV, Segmentation fault.
Possible cause
Related to a call to DIPOLE_IO from Bare_Hamiltonian_from_Scratch. DIPOLE_IO tries accessing the unallocated variable PAR_K_scheme%IND_bz%element_1D(ik) (line 202 in DIPOLE_IO.F) (screenshot 2).
PAR_K_scheme%ind_bz%element_1D should be allocated by the following line inside PARALLEL_SETUP_K_scheme (line 88 in PARALLEL_SETUP_K_scheme.F)
call PAR_INDEX_copy(PAR_IND_Xk_bz, PAR_K_scheme%IND_bz )
but PAR_IND_Xk_bz%element_1D seems to be unallocated to begin with (screenshot 3).
Is there a missing allocation step for PAR_IND_Xk_bz%element_1D somewhere before?
Steps to reproduce
HF_and_locXC calculation with yambo_sc on Silicon with 12x12x12 k-mesh from Quantum Espresso.
Files for reproduction: https://drive.google.com/file/d/1_NuduVHULqlLnFidAjdwHeW_mBoGFTYa/view?usp=sharing
Happens in both serial and parallel mode.
Yambo input file:
dipoles
HF_and_locXC # [R] Hartree-Fock
BareHfromScratch
BareHScaleFermi
WriteVxc
dipoles
% DipBands
1 | 10 | # [DIP] Bands range for dipoles
%
DipBandsALL # [DIP] Compute all bands range, not only valence and conduction
DipApproach='Covariant'
DipComputed= "R P V P2" # [DIP] [default R P V; extra P2 Spin Orb]
#FFTGvecs= 7239 RL
#EXXRLvcs= 47183 RL # [XX] Exchange RL components
#VXCRLvcs= 47183 RL # [XC] XCpotential RL components
FFTGvecs= 200 RL
EXXRLvcs= 200 RL # [XX] Exchange RL components
VXCRLvcs= 200 RL # [XC] XCpotential RL components
%QPkrange # [GW] QP generalized Kpoint/Band indices
1|1|1|10|
%
Version used
Yambo(sc) - MPI+SLK+SLEPC+HDF5_MPI_IO - Ver. 5.3.0
Phys-gw-from-bareH branch with commit: 77ccae0
Compiler: GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
MPI: mpirun (Open MPI) 4.1.2


