The Elk Code
 
Loading...
Searching...
No Matches
writepmat.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!BOP
7! !ROUTINE: writepmat
8! !INTERFACE:
9subroutine writepmat
10! !USES:
11use modmain
12use modmpi
13use modramdisk
14! !DESCRIPTION:
15! Calculates the momentum matrix elements using routine {\tt genpmat} and
16! writes them to direct access file {\tt PMAT.OUT}.
17!
18! !REVISION HISTORY:
19! Created November 2003 (Sharma)
20!EOP
21!BOC
22implicit none
23! ensure momentum matrix elements are written to disk
25wrtdsk=.true.
26! initialise universal variables
27call init0
28call init1
29! read in the density and potentials from file
30call readstate
31! find the new linearisation energies
32call linengy
33! generate the APW radial functions
34call genapwfr
35! generate the local-orbital radial functions
36call genlofr
37! write the momentum matrix elements in the second-variational basis to file
38call genpmat
40if (mp_mpi) then
41 write(*,*)
42 write(*,'("Info(writepmat):")')
43 write(*,'(" momentum matrix elements written to file PMAT.OUT")')
44end if
45end subroutine
46!EOC
47
subroutine genapwfr
Definition genapwfr.f90:10
subroutine genlofr
Definition genlofr.f90:10
subroutine genpmat
Definition genpmat.f90:7
subroutine init0
Definition init0.f90:10
subroutine init1
Definition init1.f90:10
subroutine linengy
Definition linengy.f90:10
logical mp_mpi
Definition modmpi.f90:17
logical wrtdsk0
logical wrtdsk
subroutine readstate
Definition readstate.f90:10
subroutine writepmat
Definition writepmat.f90:10