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
6
subroutine
dynfext
(iq,is,ia,ip,fext)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: iq,is,ia,ip
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,"_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
28
end subroutine
29
dynfext
subroutine dynfext(iq, is, ia, ip, fext)
Definition
dynfext.f90:7
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
dynfext.f90
Generated by
1.9.8