The Elk Code
Loading...
Searching...
No Matches
cbshtip.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2023 J. K. Dewhurst and S. Sharma.
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
cbshtip
(nr,nri,cfmt)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: nr,nri
11
complex(4)
,
intent(inout)
:: cfmt(*)
12
! local variables
13
integer
nro,npi,npo,i
14
! automatic arrays
15
complex(4)
f(max(lmmaxi*nri,lmmaxo*(nr-nri)))
16
! transform the inner part of the muffin-tin function in-place
17
npi=lmmaxi*nri
18
f(1:npi)=cfmt(1:npi)
19
call
cgemm(
'N'
,
'N'
,lmmaxi,nri,lmmaxi,
cone
,
cbshti
,lmmaxi,f,lmmaxi,
czero
,cfmt, &
20
lmmaxi)
21
! transform the outer part of the muffin-tin function in-place
22
nro=nr-nri
23
npo=lmmaxo*nro
24
i=npi+1
25
f(1:npo)=cfmt(i:npi+npo)
26
call
cgemm(
'N'
,
'N'
,lmmaxo,nro,lmmaxo,
cone
,
cbshto
,lmmaxo,f,lmmaxo,
czero
,cfmt(i),&
27
lmmaxo)
28
end subroutine
29
cbshtip
subroutine cbshtip(nr, nri, cfmt)
Definition
cbshtip.f90:7
modmain
Definition
modmain.f90:6
modmain::czero
complex(4), parameter czero
Definition
modmain.f90:1236
modmain::cbshto
complex(4), dimension(:,:), allocatable cbshto
Definition
modmain.f90:582
modmain::cone
complex(4), parameter cone
Definition
modmain.f90:1236
modmain::cbshti
complex(4), dimension(:,:), allocatable cbshti
Definition
modmain.f90:581
cbshtip.f90
Generated by
1.9.8