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
6subroutine ssfext(iq,fext)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: iq
11character(*), intent(out) :: fext
12! local variables
13integer i,j,m(3),n(3)
14! external functions
15integer, external :: gcd
16do 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
25end do
26write(fext,'("_Q",2I2.2,"_",2I2.2,"_",2I2.2,".OUT")') m(1),n(1),m(2),n(2), &
27 m(3),n(3)
28end subroutine
29
integer function gcd(x, y)
Definition gcd.f90:10
integer, dimension(:,:), allocatable ivq
Definition modmain.f90:529
integer, dimension(3) ngridq
Definition modmain.f90:515
subroutine ssfext(iq, fext)
Definition ssfext.f90:7