The Elk Code
 
Loading...
Searching...
No Matches
trimrfg.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
6subroutine trimrfg(rfir)
7use modmain
8implicit none
9! arguments
10real(8), intent(inout) :: rfir(ngtot)
11! automatic arrays
12complex(8) zfft(nfgrz)
13! Fourier transform function to G-space
14call rzfftifc(3,ngridg,-1,rfir,zfft)
15! zero the components for |G| > 2 gkmax
16where(igrzf(1:nfgrz) > ngvc) zfft(1:nfgrz)=0.d0
17! Fourier transform back to real-space
18call rzfftifc(3,ngridg,1,rfir,zfft)
19end subroutine
20
integer, dimension(3) ngridg
Definition modmain.f90:386
integer, dimension(:), allocatable igrzf
Definition modmain.f90:416
integer ngvc
Definition modmain.f90:398
subroutine trimrfg(rfir)
Definition trimrfg.f90:7
subroutine rzfftifc(nd, n, sgn, r, z)