The Elk Code
addlorbcnd.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2012 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3 ! This file is distributed under the terms of the GNU General Public License.
4 ! See the file COPYING for license details.
5 
6 subroutine addlorbcnd
7 use modmain
8 implicit none
9 ! local variables
10 integer is,nlo,l,io
11 ! add conduction local-orbitals to each species
12 do is=1,nspecies
13  nlo=nlorb(is)
14  do l=0,lmaxo
15  nlo=nlo+1
16  if (nlo > maxlorb) then
17  write(*,*)
18  write(*,'("Error(addlorbcnd): nlorb too large : ",I8)') nlo
19  write(*,'(" for species ",I4)') is
20  write(*,'("Adjust maxlorb in modmain and recompile code")')
21  write(*,*)
22  stop
23  end if
24  lorbl(nlo,is)=l
25  lorbord(nlo,is)=lorbordc
26  do io=1,lorbordc
27  lorbe0(io,nlo,is)=0.15d0
28  lorbdm(io,nlo,is)=io-1
29  lorbve(io,nlo,is)=.true.
30  end do
31  end do
32  nlorb(is)=nlo
33 end do
34 end subroutine
35 
integer lorbordc
Definition: modmain.f90:837
integer, dimension(maxspecies) nlorb
Definition: modmain.f90:786
real(8), dimension(maxlorbord, maxlorb, maxspecies) lorbe0
Definition: modmain.f90:804
integer lmaxo
Definition: modmain.f90:201
logical, dimension(maxlorbord, maxlorb, maxspecies) lorbve
Definition: modmain.f90:812
subroutine addlorbcnd
Definition: addlorbcnd.f90:7
integer, dimension(maxlorb, maxspecies) lorbord
Definition: modmain.f90:792
integer nspecies
Definition: modmain.f90:34
integer, parameter maxlorb
Definition: modmain.f90:780
integer, dimension(maxlorb, maxspecies) lorbl
Definition: modmain.f90:796
integer, dimension(maxlorbord, maxlorb, maxspecies) lorbdm
Definition: modmain.f90:810