File: readalphadu.f90

package info (click to toggle)
elkcode 5.4.24-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 12,840 kB
  • sloc: f90: 48,415; fortran: 22,457; perl: 965; makefile: 384; sh: 369; python: 105; ansic: 67
file content (35 lines) | stat: -rw-r--r-- 849 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

! Copyright (C) 2009 F. Bultmark, F. Cricchio and L. Nordstrom.
! This file is distributed under the terms of the GNU Lesser General Public
! License. See the file COPYING for license details.

subroutine readalphadu
use modmain
use moddftu
implicit none
! local variables
integer is,ia,i,l
integer is_,ia_,l_
if (.not.readadu) return
open(50,file='ALPHADU'//trim(filext),form='FORMATTED')
do i=1,ndftu
  is=idftu(1,i)
  l=idftu(2,i)
  do ia=1,natoms(is)
    read(50,*)
    read(50,*) is_,ia_,l_
    if ((is.ne.is_).or.(ia.ne.ia_).or.(l.ne.l_)) then
      write(*,*)
      write(*,'("Error(readalphadu): differing is, ia or l")')
      write(*,'(" current     : ",3I8)') is,ia,l
      write(*,'(" ALPHADU.OUT : ",3I8)') is_,ia_,l_
      write(*,*)
      stop
    end if
    read(50,*) alphadu(ia,i)
  end do
end do
close(50)
return
end subroutine