The Elk Code
Loading...
Searching...
No Matches
writew90amn.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2024 J. K. Dewhurst and S. Sharma.
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
writew90amn
7
use
modmain
8
use
modw90
9
use
modrandom
10
implicit none
11
! local variables
12
integer
ik,ist,i
13
real
(8) a,b
14
character(256)
fname
15
fname=trim(
seedname
)//
'.amn'
16
open
(50,file=trim(fname),action=
'WRITE'
,form=
'FORMATTED'
)
17
write
(50,
'("Generated by Elk version ",I0,".",I0,".",I0)'
)
version
18
write
(50,
'(3I6)'
)
num_bands
,
nkptnr
,
num_wann
19
do
ik=1,
nkptnr
20
do
i=1,
num_wann
21
do
ist=1,
num_bands
22
a=0.5d0-
randomu
()
23
b=0.5d0-
randomu
()
24
write
(50,
'(3I8,2G18.10)'
) ist,i,ik,a,b
25
end do
26
end do
27
end do
28
close
(50)
29
write
(*,*)
30
write
(*,
'("Info(writew90amn): created file ",A)'
) trim(fname)
31
end subroutine
32
modmain
Definition
modmain.f90:6
modmain::nkptnr
integer nkptnr
Definition
modmain.f90:463
modmain::version
integer, dimension(3), parameter version
Definition
modmain.f90:1288
modrandom
Definition
modrandom.f90:6
modrandom::randomu
real(8) function randomu()
Definition
modrandom.f90:18
modw90
Definition
modw90.f90:6
modw90::num_wann
integer num_wann
Definition
modw90.f90:18
modw90::num_bands
integer num_bands
Definition
modw90.f90:20
modw90::seedname
character(256) seedname
Definition
modw90.f90:12
writew90amn
subroutine writew90amn
Definition
writew90amn.f90:7
writew90amn.f90
Generated by
1.9.8