The Elk Code
putepsinv.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2018 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
subroutine
putepsinv
(iq,epsi)
7
use
modmain
8
use
modramdisk
9
implicit none
10
! arguments
11
integer
,
intent(in)
:: iq
12
complex(8)
,
intent(in)
:: epsi(ngrf,ngrf,nwrf)
13
! local variables
14
integer
recl
15
! determine the record length for EPSINV.OUT
16
inquire
(iolength=recl)
vql
(1:3,iq),ngrf,nwrf,epsi
17
!$OMP CRITICAL(u245)
18
! write to RAM disk if required
19
if
(
ramdisk
) &
20
call
putrd
(
'EPSINV.OUT'
,iq,v1=
vql
(1:3,iq),n1=ngrf,n2=nwrf,nzv=ngrf*ngrf*nwrf, &
21
zva=epsi)
22
! write to disk if required
23
if
(
wrtdisk
)
then
24
open
(245,
file
=
'EPSINV.OUT'
,form=
'UNFORMATTED'
,access=
'DIRECT'
,recl=recl)
25
write
(245,rec=iq)
vql
(1:3,iq),ngrf,nwrf,epsi
26
close
(245)
27
end if
28
!$OMP END CRITICAL(u245)
29
end subroutine
30
modramdisk::ramdisk
logical ramdisk
Definition:
modramdisk.f90:9
modramdisk::wrtdisk
logical wrtdisk
Definition:
modramdisk.f90:15
modramdisk::putrd
subroutine putrd(fname, irec, n1, n2, n3, v1, v2, nrv, rva, nzv, zva)
Definition:
modramdisk.f90:120
modramdisk
Definition:
modramdisk.f90:6
modramdisk::file
type(file_t), dimension(:), allocatable, private file
Definition:
modramdisk.f90:29
putepsinv
subroutine putepsinv(iq, epsi)
Definition:
putepsinv.f90:7
modmain
Definition:
modmain.f90:6
modmain::vql
real(8), dimension(:,:), allocatable vql
Definition:
modmain.f90:548
putepsinv.f90
Generated by
1.8.14