The Elk Code
Loading...
Searching...
No Matches
ssfext.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
6
subroutine
ssfext
(iq,fext)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: iq
11
character(*)
,
intent(out)
:: fext
12
! local variables
13
integer
i,j,m(3),n(3)
14
! external functions
15
integer
,
external
:: gcd
16
do
i=1,3
17
if
(
ivq
(i,iq) /= 0)
then
18
j=
gcd
(
ivq
(i,iq),
ngridq
(i))
19
m(i)=
ivq
(i,iq)/j
20
n(i)=
ngridq
(i)/j
21
else
22
m(i)=0
23
n(i)=0
24
end if
25
end do
26
write
(fext,
'("_Q",2I2.2,"_",2I2.2,"_",2I2.2,".OUT")'
) m(1),n(1),m(2),n(2), &
27
m(3),n(3)
28
end subroutine
29
gcd
integer function gcd(x, y)
Definition
gcd.f90:10
modmain
Definition
modmain.f90:6
modmain::ivq
integer, dimension(:,:), allocatable ivq
Definition
modmain.f90:529
modmain::ngridq
integer, dimension(3) ngridq
Definition
modmain.f90:515
ssfext
subroutine ssfext(iq, fext)
Definition
ssfext.f90:7
ssfext.f90
Generated by
1.9.8