~dikan.va/siesta/thtr-func-self-test-example-Jks

« back to all changes in this revision

Viewing changes to Src/state_init.F

  • Committer: Vladimir Dikan
  • Date: 2019-07-29 20:26:31 UTC
  • Revision ID: vdikan@icmab.es-20190729202631-dkgin98u71r4y8bb
overlap gradient computed on BASE step

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
      use m_handle_sparse, only: correct_supercell_SpD
132
132
      use m_restruct_SpData2D, only: restruct_dSpData2D
133
133
 
134
 
      use m_virtual_step_md, only: substep, VIRTUAL_STEP
 
134
      use m_virtual_step_md, only: substep, BASE_STEP
135
135
 
136
136
      implicit none
137
137
 
696
696
      if ( fdf_get('Save.Overlap.Gradient', .false.) .or.
697
697
!     We need gradient of overlap for the Virtual step
698
698
!     during Kohn-Sham J flux component calculation:
699
 
     $     ((virtual_md_Jks) .and. (substep .eq. VIRTUAL_STEP)) ) then
 
699
     $     ((virtual_md_Jks) .and. (substep .eq. BASE_STEP)) ) then
700
700
        call newdSpData2D(sparse_pattern,3,block_dist,gradS_2D)
701
701
        if (ionode) call print_type(gradS_2D)
702
702
        call overlap_gradient(na_U, lasto, isa, maxnh, xijo, gradS_2D)