2003-01-20 05:58:50 +08:00
|
|
|
!
|
|
|
|
! Copyright (C) 2001 PWSCF group
|
|
|
|
! This file is distributed under the terms of the
|
|
|
|
! GNU General Public License. See the file `License'
|
|
|
|
! in the root directory of the present distribution,
|
|
|
|
! or http://www.gnu.org/copyleft/gpl.txt .
|
|
|
|
!
|
|
|
|
!-----------------------------------------------------------------------
|
|
|
|
|
2003-02-08 00:04:36 +08:00
|
|
|
subroutine tabd (nt, occd)
|
2003-01-20 05:58:50 +08:00
|
|
|
!-----------------------------------------------------------------------
|
|
|
|
!
|
|
|
|
! This routine is a table (far from being complete) for the total number
|
|
|
|
! of d electrons in transition metals (PPs usually are built on non
|
|
|
|
! physical configurations)
|
|
|
|
!
|
2003-02-08 00:04:36 +08:00
|
|
|
use pwcom
|
2003-01-20 05:58:50 +08:00
|
|
|
implicit none
|
2003-02-08 00:04:36 +08:00
|
|
|
real(kind=DP) :: occd
|
2003-01-20 05:58:50 +08:00
|
|
|
! output: the total number of d electrons
|
|
|
|
|
2003-02-08 00:04:36 +08:00
|
|
|
integer :: nt
|
|
|
|
if (psd (nt) .eq.'Mn') then
|
|
|
|
occd = 5.d0
|
|
|
|
elseif (psd (nt) .eq.'Fe') then
|
|
|
|
occd = 6.d0
|
|
|
|
elseif (psd (nt) .eq.'Co') then
|
|
|
|
occd = 9.d0
|
|
|
|
elseif (psd (nt) .eq.'Ni') then
|
|
|
|
occd = 8.d0
|
|
|
|
elseif (psd (nt) .eq.'Cu') then
|
|
|
|
occd = 10.d0
|
|
|
|
else
|
|
|
|
occd = 0.d0
|
2003-01-20 05:58:50 +08:00
|
|
|
call error ('tabd', 'pseudopotential not yet inserted', - 1)
|
|
|
|
|
2003-02-08 00:04:36 +08:00
|
|
|
endif
|
|
|
|
return
|
2003-01-20 05:58:50 +08:00
|
|
|
end subroutine tabd
|
|
|
|
|