Debian Codegraph @

PHonon/PH/check_restart_recover.f90

raw symbols SCIP
1 !
2 ! Copyright (C) 2008 Quantum ESPRESSO group
3 ! This file is distributed under the terms of the
4 ! GNU General Public License. See the file `License'
5 ! in the root directory of the present distribution,
6 ! or http://www.gnu.org/copyleft/gpl.txt .
7 !
8 SUBROUTINE check_restart_recover(exst_recover, exst_restart)
9 USE io_files, ONLY : seqopn
10 IMPLICIT NONE
11 INTEGER :: iunrec, iunres
12 LOGICAL :: exst_recover, exst_restart
13
14 iunrec = 99
15 iunres = 98
16 CALL seqopn (iunrec, 'recover', 'unformatted', exst_recover)
17 CALL seqopn( iunres, 'restart_k', 'UNFORMATTED', exst_restart )
18 IF (exst_recover) THEN
19 close (unit = iunrec, status = 'keep')
20 ELSE
21 close (unit = iunrec, status = 'delete')
22 ENDIF
23 IF (exst_restart) THEN
24 close (unit = iunres, status = 'keep')
25 ELSE
26 close (unit = iunres, status = 'delete')
27 ENDIF
28 RETURN
29 END SUBROUTINE check_restart_recover