Skip to content

Commit e98bc2b

Browse files
ye-luoJeromeCCP9
authored andcommitted
Change sc_eta to use dp kind for precision
resolve flang warning ``` warning: Default real literal in REAL(8) context might need a kind suffix, as its rounded value 3.9999999105930328369140625e-2_4 is inexact [-Wreal-constant-widening] ```
1 parent 1ca67a1 commit e98bc2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/postw90/postw90_types.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module w90_postw90_types
168168
character(len=20) :: curv_unit = 'ang2' ! postw90/kpath, kslice as well
169169
type(pw90_smearing_type) :: kubo_smearing ! defaults to global values
170170
integer :: sc_phase_conv = 1
171-
real(kind=dp) :: sc_eta = 0.04 ! also postw90/wan_ham
171+
real(kind=dp) :: sc_eta = 0.04_dp ! also postw90/wan_ham
172172
real(kind=dp) :: sc_w_thr = 5.0d0
173173
logical :: sc_use_eta_corr = .true.
174174
logical :: wanint_kpoint_file = .false. ! also postw90/spin, postw90/dos, postw90.F90

0 commit comments

Comments
 (0)