wannier90 icon indicating copy to clipboard operation
wannier90 copied to clipboard

How to modify the source program to output a wannier90_hr.dat file with longer number of significant figures

Open guobd-huagong opened this issue 3 years ago • 2 comments

Hi,

In the wannier90 program, the default output of the wannier90_hr.dat file is accurate to 6 digits after the decimal point, and I need to output a file with 14 digits after the decimal point. Before I compile the wannier90 program, what part of the program can be modified to make it output a wannier90_hr.dat file with longer number of significant figures?

Thank you!

guobd-huagong avatar Dec 02 '21 08:12 guobd-huagong

seedname_tb.dat has more digits, you can try the input tag write_tb = .true.

qiaojunfeng avatar Dec 02 '21 08:12 qiaojunfeng

The relevant line for _hr.dat file is the following. You may change 2F12.6 to 2F20.14. https://github.com/wannier-developers/wannier90/blob/2b9973c12e85397fa9564370f6cced16f8428834/src/hamiltonian.F90#L477-L478

jaemolihm avatar Dec 02 '21 09:12 jaemolihm