The Elk Code
 
Loading...
Searching...
No Matches
dynfext.f90
Go to the documentation of this file.
1
2! Copyright (C) 2002-2005 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl.
3! This file is distributed under the terms of the GNU General Public License.
4! See the file COPYING for license details.
5
6subroutine dynfext(iq,is,ia,ip,fext)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: iq,is,ia,ip
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,"_S",I2.2,"_A",I3.3,"_P",I1,&
27 &".OUT")') m(1),n(1),m(2),n(2),m(3),n(3),is,ia,ip
28end subroutine
29
subroutine dynfext(iq, is, ia, ip, fext)
Definition dynfext.f90:7
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