71
71
use files, only : label_length
72
72
use m_ts_global_vars, only : TSrun
73
73
use m_ts_options, only : TS_HS_save
74
use m_ts_kpoints, only : ts_Gamma, ts_kscell, ts_kdispl
74
use ts_kpoint_scf_m, only: ts_kpoints_scf, ts_gamma_scf
75
75
use m_ts_io, only : ts_write_TSHS,fname_TSHS, FC_index
77
77
#ifdef FINAL_CHECK_HS
340
340
! This is "pure" MD and we only write consecutive numbers
341
341
! Together with this you cannot also save FC
342
342
fname = fname_TSHS(slabel, istep = istep )
343
call ts_write_tshs(fname, .false., Gamma, ts_Gamma,
343
call ts_write_tshs(fname, .false., Gamma, ts_Gamma_scf,
344
344
& ucell, nsc, isc_off, na_u, no_s, spin%H,
345
& ts_kscell, ts_kdispl,
345
& ts_kpoints_scf%k_cell, ts_kpoints_scf%k_displ,
347
347
& H_2D, S_1D, indxuo,
348
348
& Ef, Qtot, Temp, istep, 0)
360
360
call FC_index(istep,ia1,io_istep,io_ia1)
361
361
fname = fname_TSHS(slabel,istep = io_istep, ia1 = io_ia1)
362
call ts_write_tshs(fname, .false., Gamma, ts_Gamma,
362
call ts_write_tshs(fname, .false., Gamma, ts_Gamma_scf,
363
363
& ucell, nsc, isc_off, na_u, no_s, spin%H,
364
& ts_kscell, ts_kdispl,
364
& ts_kpoints_scf%k_cell, ts_kpoints_scf%k_displ,
366
366
& H_2D, S_1D, indxuo,
367
367
& Ef, Qtot, Temp, io_istep, io_ia1)
369
369
fname = fname_TSHS(slabel)
370
call ts_write_tshs(fname, .false., Gamma, ts_Gamma,
370
call ts_write_tshs(fname, .false., Gamma, ts_Gamma_scf,
371
371
& ucell, nsc, isc_off, na_u, no_s, spin%H,
372
& ts_kscell, ts_kdispl,
372
& ts_kpoints_scf%k_cell, ts_kpoints_scf%k_displ,
374
374
& H_2D, S_1D, indxuo,
375
375
& Ef, Qtot, Temp, 0, 0)