File: readfdu.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 (39 lines) | stat: -rw-r--r-- 871 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
36
37
38
39

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

subroutine readfdu
use modmain
use moddftu
implicit none
! local variables
integer is,i,k,l
integer is_,l_
fdu(:,:)=0.d0
! read Slater integrals from FDU.OUT
open(50,file='FDU'//trim(filext),form='FORMATTED')
do i=1,ndftu
  is=idftu(1,i)
  l=idftu(2,i)
  read(50,*)
  read(50,*) is_,l_
  if ((is.ne.is_).or.(l.ne.l_)) then
    write(*,*)
    write(*,'("Error(readfdu): differing is or l")')
    write(*,'(" current : ",2I8)') is,l
    write(*,'(" FDU.OUT : ",2I8)') is_,l_
    write(*,*)
    stop
  end if
  do k=0,2*l,2
    read(50,*) fdu(k,i)
  end do
  read(50,*) ujdu(1,i)
  read(50,*) ujdu(2,i)
  if (inpdftu.ge.4) read(50,*) lambdadu(i)
end do
close(50)
return
end subroutine