The Elk Code
 
Loading...
Searching...
No Matches
writemomru.f90
Go to the documentation of this file.
1
2! Copyright (C) 2018 T. Mueller, 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 writemomru
7use modmain
8use modulr
9implicit none
10! local variables
11integer is,ia,ias,ir
12open(50,file='MOMENTRU.OUT',form='FORMATTED')
13do ir=1,nqpt
14 write(50,*)
15 write(50,'("R-point number ",I6," of ",I6)') ir,nqpt
16 write(50,'("R-point (Cartesian coordinates) :")')
17 write(50,'(3G18.10)') vrcu(:,ir)
18 write(50,'("Moments :")')
19 write(50,'(" interstitial",T30,": ",3G18.10)') momirru(1:ndmag,ir)
20 write(50,'(" muffin-tins")')
21 do is=1,nspecies
22 write(50,'(" species : ",I4," (",A,")")') is,trim(spsymb(is))
23 do ia=1,natoms(is)
24 ias=idxas(ia,is)
25 write(50,'(" atom ",I4,T30,": ",3G18.10)') ia,mommtru(1:ndmag,ias,ir)
26 end do
27 end do
28 write(50,'(" total moment",T30,": ",3G18.10)') momtotru(1:ndmag,ir)
29end do
30close(50)
31end subroutine
32
integer, dimension(maxspecies) natoms
Definition modmain.f90:36
integer, dimension(maxatoms, maxspecies) idxas
Definition modmain.f90:42
integer nqpt
Definition modmain.f90:525
character(64), dimension(maxspecies) spsymb
Definition modmain.f90:78
integer nspecies
Definition modmain.f90:34
integer ndmag
Definition modmain.f90:238
real(8), dimension(:,:), allocatable vrcu
Definition modulr.f90:26
real(8), dimension(:,:), allocatable momirru
Definition modulr.f90:57
real(8), dimension(:,:), allocatable momtotru
Definition modulr.f90:57
real(8), dimension(:,:,:), allocatable mommtru
Definition modulr.f90:57
subroutine writemomru
Definition writemomru.f90:7