~jose-soler/siesta/unfolding

« back to all changes in this revision

Viewing changes to Util/Unfolding/Src/unfold.F90

  • Committer: sara
  • Date: 2019-02-27 17:36:50 UTC
  • Revision ID: sara@xenon.fmc.uam.es-20190227173650-koc0c7j0sswpiyco
Fixed small bugs.

modified:
  Util/Unfolding/README
  Util/Unfolding/Src/plotdiff.m
  Util/Unfolding/Src/plotdos.m
  Util/Unfolding/Src/unfold.F90

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
program unfold
10
10
 
11
 
! Reads the .fdf, .ion, .out, .psf and .HSX files of a SIESTA calculation and 
 
11
! Reads the .fdf, .ion, .HSX, .out and .psf files of a SIESTA calculation and 
12
12
! generates unfolded and refolded bands. See Util/Unfolding/README for details.
13
13
! Ref: "Band unfolding made simple", S.G.Mayo and J.M.Soler, Dic.2018
14
14
!       arXiv:1812.03925          ( https://arxiv.org/abs/1812.03925 )
529
529
        enddo ! ig
530
530
      endif ! (myNode==iqNode)
531
531
    enddo ! iq
 
532
 
532
533
#ifdef MPI
533
534
    ntmp = (iq2-iq1+1)*(ne+1)*nspin
534
535
    call re_alloc( tmp1, 1,ntmp, myName//'tmp1', copy=.false., shrink=.true. )
558
559
      read(dumm(ic+1:),*) efermi
559
560
      print*,'unfold: Fermi = ',efermi
560
561
      call system('rm fermi')
 
562
      close(8181)
561
563
    endif
562
564
 
563
565
    if (myNode==0) then
589
591
        enddo ! iq
590
592
        call io_close(iu)
591
593
 
592
 
        if (refolding) then
 
594
        if (refolding) then 
593
595
          fname = trim(slabel)//'.refoldedBands'
594
596
          if (nspin==2 .and. ispin==1) then
595
597
            fname = trim(fname)//'.spinUp'