The Elk Code
cbsht.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2021 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 cbsht(nr,nri,cfmt1,cfmt2)
7 use modmain
8 implicit none
9 ! arguments
10 integer, intent(in) :: nr,nri
11 complex(4), intent(in) :: cfmt1(*)
12 complex(4), intent(out) :: cfmt2(*)
13 ! local variables
14 integer i
15 ! transform the inner part of the muffin-tin
16 call cgemm('N','N',lmmaxi,nri,lmmaxi,cone,cbshti,lmmaxi,cfmt1,lmmaxi,czero, &
17  cfmt2,lmmaxi)
18 ! transform the outer part of the muffin-tin
19 i=lmmaxi*nri+1
20 call cgemm('N','N',lmmaxo,nr-nri,lmmaxo,cone,cbshto,lmmaxo,cfmt1(i),lmmaxo, &
21  czero,cfmt2(i),lmmaxo)
22 end subroutine
23 
integer lmmaxo
Definition: modmain.f90:203
complex(4), parameter czero
Definition: modmain.f90:1239
complex(4), parameter cone
Definition: modmain.f90:1239
subroutine cbsht(nr, nri, cfmt1, cfmt2)
Definition: cbsht.f90:7
integer lmmaxi
Definition: modmain.f90:207
complex(4), dimension(:,:), allocatable cbshti
Definition: modmain.f90:581
complex(4), dimension(:,:), allocatable cbshto
Definition: modmain.f90:582