~albertog/siesta/trunk-nlso

« back to all changes in this revision

Viewing changes to Src/final_H_f_stress.F

  • Committer: Alberto Garcia
  • Date: 2018-06-04 16:10:46 UTC
  • mfrom: (697.2.2 trunk)
  • Revision ID: albertog@icmab.es-20180604161046-fsufw3pl21dnb5g5
Sync to trunk-699

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
76
76
 
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,
346
346
     &        xa, lasto, 
347
347
     &        H_2D, S_1D, indxuo,
348
348
     &        Ef, Qtot, Temp, istep, 0)
359
359
            !  6 = +z
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,
365
365
     &           xa, lasto, 
366
366
     &           H_2D, S_1D, indxuo,
367
367
     &           Ef, Qtot, Temp, io_istep, io_ia1)
368
368
         else
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,
373
373
     &           xa, lasto,
374
374
     &           H_2D, S_1D, indxuo,
375
375
     &           Ef, Qtot, Temp, 0, 0)