The Elk Code
Loading...
Searching...
No Matches
checkwrite.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2020 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
checkwrite
(twrite)
7
use
modmain
8
use
moddelf
9
implicit none
10
! arguments
11
logical
,
intent(out)
:: twrite
12
! check for WRITE file
13
inquire
(file=
'WRITE'
,exist=twrite)
14
if
(twrite)
then
15
write
(*,
'("Info(checkwrite): WRITE file exists")'
)
16
! delete the WRITE file
17
call
delfile
(
'WRITE'
)
18
end if
19
end subroutine
20
checkwrite
subroutine checkwrite(twrite)
Definition
checkwrite.f90:7
moddelf
Definition
moddelf.f90:6
moddelf::delfile
subroutine delfile(fname)
Definition
moddelf.f90:15
modmain
Definition
modmain.f90:6
checkwrite.f90
Generated by
1.9.8