[quote="carla.verdi":1o4gn8xy]Anyway, you can verify this by e.g. comparing the band structure that you obtain with and without vdw corrections, of course using the same relaxed structure that you obtained with vdw corrections.[/quote:1o4gn8xy]
Dear Carla, the band structure looks almost identical. There is a very slight shift of several meV of the bands. Otherwise the bands look the same (at least those close to the band gap).
I tried to include vdf-DF into EPW by adding the following lines of code to dvqpsi_us3.f90 (taken from PHonon/PH/dvqpsi_us.f90 of QE v6.3):
[code:1o4gn8xy] rho%of_r(:,1) = rho%of_r(:,1) + rho_core
IF ( dft_is_gradient() ) THEN
CALL dgradcorr (dfftp, rho%of_r, grho, &
dvxc_rr, dvxc_sr, dvxc_ss, dvxc_s, xq0, drhoc, 1, 1, g, aux)
ENDIF
IF (dft_is_nonlocc()) THEN
CALL dnonloccorr(rho%of_r, drhoc, xq0, aux)
ENDIF
rho%of_r(:,1) = rho%of_r(:,1) - rho_core[/code:1o4gn8xy]
But that did not help with the [i:1o4gn8xy]malloc(): memory corruption[/i:1o4gn8xy] error which I described previously. I am currently trying to trace back the error to a certain line of code. It looks like the line
[code:1o4gn8xy]CALL mp_min( emin, inter_pool_comm )[/code:1o4gn8xy]
in epw_setup.f90 (somewhere around line number 280) is causing trouble. And indeed, if I run epw on only one core with
[code:1o4gn8xy]mpirun -np 1 epw.x -npool 1 < epw.in[/code:1o4gn8xy]
then the malloc error doesn’t occur with input_dft=‘vdw-DF’!
I am not familiar with QE parallelization. Is it possible that the flag input_dft=‘vdw-DF’ somehow influences the parallelization scheme and EPW gets in trouble by using some different scheme?
UPDATE: I executed epw.x on one core and printed out emin and emax, which are -4.234 and 0.14246. I then commented out the lines
[code:1o4gn8xy]CALL mp_min( emin, inter_pool_comm )[/code:1o4gn8xy]
and
[code:1o4gn8xy]CALL mp_max( emax, inter_pool_comm )[/code:1o4gn8xy]
and replaced them by setting manually emin/emax to the values given above. I then executed epw.x on 16 cores and EPW crashes now at some point further in the code. So it is quite obvious that there is something going wrong with the parallelization when using EPW with input_dft=‘vdw-DF’.
Any hint?