The Elk Code
rdmwriteengy.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2007 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 
6 !BOP
7 ! !ROUTINE: rdmwriteengy
8 ! !INTERFACE:
9 subroutine rdmwriteengy(fnum)
10 ! !USES:
11 use modmain
12 use modrdm
13 ! !INPUT/OUTPUT PARAMETERS:
14 ! fnum : file number for writing output (in,integer)
15 ! !DESCRIPTION:
16 ! Writes all contributions to the total energy to file.
17 !
18 ! !REVISION HISTORY:
19 ! Created 2008 (Sharma)
20 !EOP
21 !BOC
22 implicit none
23 ! arguments
24 integer, intent(in) :: fnum
25 write(fnum,*)
26 write(fnum,'("Energies :")')
27 write(fnum,'(" electronic kinetic",T30,": ",G18.10)') engykn
28 write(fnum,'(" core electron kinetic",T30,": ",G18.10)') engykncr
29 write(fnum,'(" Coulomb",T30,": ",G18.10)') engyvcl
30 write(fnum,'(" Madelung",T30,": ",G18.10)') engymad
31 write(fnum,'(" exchange-correlation",T30,": ",G18.10)') engyx
32 if (rdmtemp > 0.d0) then
33  write(fnum,'(" entropy",T30,": ",G18.10)') rdmentrpy
34 end if
35 write(fnum,'(" total energy",T30,": ",G18.10)') engytot
36 flush(fnum)
37 end subroutine
38 !EOC
39 
real(8) engyx
Definition: modmain.f90:975
real(8) engykn
Definition: modmain.f90:953
subroutine rdmwriteengy(fnum)
real(8) rdmentrpy
Definition: modrdm.f90:33
real(8) rdmtemp
Definition: modrdm.f90:31
Definition: modrdm.f90:6
real(8) engytot
Definition: modmain.f90:983
real(8) engyvcl
Definition: modmain.f90:965
real(8) engykncr
Definition: modmain.f90:955
real(8) engymad
Definition: modmain.f90:967