NaN output of ypp

You can find here problems arising when using old releases of Yambo (< 5.0). Issues as parallelization strategy, performance issues and other technical aspects.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan

Locked
sdwang
Posts: 299
Joined: Fri Apr 09, 2010 12:30 pm

NaN output of ypp

Post by sdwang » Thu Feb 18, 2021 4:19 am

Dear all,
The output of dipoles using ypp-5.0.0 is NaN as below:
# k_x (rlu) k_y (rlu) k_z (rlu) |<v|R|c>.DIP_dir|^2
#
0.000000 0.000000 0.000000 NaN
-0.745058E-8 -0.745058E-8 0.125000 NaN
-0.125000 -0.125000 -0.125000 NaN

and both -dipoles exc and ele are the same with 'NaN' output.
Does the diploes output function not has been implemented? Or something is wrong?
Thanks!
Shudong
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

User avatar
Davide Sangalli
Posts: 641
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: NaN output of ypp

Post by Davide Sangalli » Mon Feb 22, 2021 10:03 pm

Dear Shudong,

try to open the file

Code: Select all

ypp/dipoles/DIPOLE_driver.F
and apply the following changes
(remove the lines with "-" and add the ones with "+" then recompile)

Code: Select all

  do ik=1,k%nibz
    if (.not.PAR_IND_DIPk_ibz%element_1D(ik)) cycle
    ik_mem=PAR_DIPk_ibz_index(ik)
    do iv=DIPOLES_bands(1),E%nbm
-     if (.not.PAR_IND_CON_BANDS_DIP%element_1D(iv)) cycle
+     if (.not.PAR_IND_VAL_BANDS_DIP%element_1D(iv)) cycle
      do ic=E%nbf+1,DIPOLES_bands(2)
-       if (.not.PAR_IND_VAL_BANDS_DIP%element_1D(ic)) cycle
+       if (.not.PAR_IND_CON_BANDS_DIP%element_1D(ic)) cycle
Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

Locked