The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine addlorbcnd
7use modmain
8implicit none
9! local variables
10integer is,nlo,l,io
11! add conduction local-orbitals to each species
12do 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
33end do
34end subroutine
35
subroutine addlorbcnd
Definition addlorbcnd.f90:7
real(8), dimension(maxlorbord, maxlorb, maxspecies) lorbe0
Definition modmain.f90:804
integer, dimension(maxlorbord, maxlorb, maxspecies) lorbdm
Definition modmain.f90:810
integer, dimension(maxlorb, maxspecies) lorbord
Definition modmain.f90:792
integer lorbordc
Definition modmain.f90:834
integer lmaxo
Definition modmain.f90:201
integer, dimension(maxspecies) nlorb
Definition modmain.f90:786
integer nspecies
Definition modmain.f90:34
logical, dimension(maxlorbord, maxlorb, maxspecies) lorbve
Definition modmain.f90:812
integer, parameter maxlorb
Definition modmain.f90:780
integer, dimension(maxlorb, maxspecies) lorbl
Definition modmain.f90:796