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
6subroutine checkwrite(twrite)
7use modmain
8use moddelf
9implicit none
10! arguments
11logical, intent(out) :: twrite
12! check for WRITE file
13inquire(file='WRITE',exist=twrite)
14if (twrite) then
15 write(*,'("Info(checkwrite): WRITE file exists")')
16! delete the WRITE file
17 call delfile('WRITE')
18end if
19end subroutine
20
subroutine checkwrite(twrite)
Definition checkwrite.f90:7
subroutine delfile(fname)
Definition moddelf.f90:15