The Elk Code
findnjcmax.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2018 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 findnjcmax
7 use modmain
8 implicit none
9 ! local variables
10 integer is,n
11 ! find the maximum size of the spherical Bessel function array over all species
12 njcmax=1
13 do is=1,nspecies
14  n=(lmaxi+1)*nrcmti(is)+(lmaxo+1)*(nrcmt(is)-nrcmti(is))
15  if (n > njcmax) njcmax=n
16 end do
17 end subroutine
18 
integer lmaxo
Definition: modmain.f90:201
integer nspecies
Definition: modmain.f90:34
integer njcmax
Definition: modmain.f90:1173
integer, dimension(maxspecies) nrcmt
Definition: modmain.f90:173
integer, dimension(maxspecies) nrcmti
Definition: modmain.f90:211
subroutine findnjcmax
Definition: findnjcmax.f90:7
integer lmaxi
Definition: modmain.f90:205