~albertog/siesta/trunk-nlso

« back to all changes in this revision

Viewing changes to Src/m_transiesta.F90

  • 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:
58
58
    use class_OrbitalDistribution
59
59
    use class_Sparsity
60
60
 
61
 
    use m_ts_kpoints, only : ts_nkpnt, ts_Gamma
 
61
    use ts_kpoint_scf_m, only : ts_kpoints_scf, ts_gamma_scf
62
62
 
63
63
    use m_ts_electype
64
64
 
145
145
       end if
146
146
 
147
147
       ! print out estimated memory usage...
148
 
       call ts_print_memory(ts_Gamma)
 
148
       call ts_print_memory(ts_gamma_scf)
149
149
 
150
150
       call ts_print_charges(N_Elec,Elecs, Qtot, sp_dist, sparse_pattern, &
151
151
            nspin, n_nzs, DM, S)
247
247
       call open_GF(N_Elec,Elecs,uGF,NEn,.false.)
248
248
 
249
249
       if ( ts_method == TS_FULL ) then
250
 
          if ( ts_Gamma ) then
 
250
          if ( ts_gamma_scf ) then
251
251
             call ts_fullg(N_Elec,Elecs, &
252
252
                  nq, uGF, nspin, na_u, lasto, &
253
253
                  sp_dist, sparse_pattern, &
262
262
                  H, S, DM, EDM, Ef, DE_NEGF)
263
263
          end if
264
264
       else if ( ts_method == TS_BTD ) then
265
 
          if ( ts_Gamma ) then
 
265
          if ( ts_gamma_scf ) then
266
266
             call ts_trig(N_Elec,Elecs, &
267
267
                  nq, uGF, nspin, na_u, lasto, &
268
268
                  sp_dist, sparse_pattern, &
278
278
          end if
279
279
#ifdef SIESTA__MUMPS
280
280
       else if ( ts_method == TS_MUMPS ) then
281
 
          if ( ts_Gamma ) then
 
281
          if ( ts_gamma_scf ) then
282
282
             call ts_mumpsg(N_Elec,Elecs, &
283
283
                  nq, uGF, nspin, na_u, lasto, &
284
284
                  sp_dist, sparse_pattern, &
335
335
                Ef = Ef + 0.01_dp * eV
336
336
             end if
337
337
          else if ( ts_method == TS_BTD ) then
338
 
             if ( ts_Gamma ) then
 
338
             if ( ts_gamma_scf ) then
339
339
                call ts_trig_Fermi(N_Elec,Elecs, &
340
340
                     nq, uGF, nspin, na_u, lasto, &
341
341
                     sp_dist, sparse_pattern, &
588
588
         end if
589
589
 
590
590
         if ( Elecs(iEl)%out_of_core ) then
591
 
            call read_Green(uGF(iEl),Elecs(iEl), ts_nkpnt, NEn )
 
591
            call read_Green(uGF(iEl),Elecs(iEl), ts_kpoints_scf%N, NEn )
592
592
         end if
593
593
         
594
594
      end do