mirror of https://gitlab.com/QEF/q-e.git
Started recover cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6153 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
9fe8b63351
commit
8c60496e75
|
@ -18,8 +18,9 @@ SUBROUTINE close_phq( flag )
|
|||
USE mp_global, ONLY : me_pool
|
||||
USE uspp, ONLY : okvan
|
||||
USE units_ph, ONLY : iuwfc, iudwf, iubar, iudrhous, iuebar, iudrho, &
|
||||
iunrec, iudvscf, iucom, iudvkb3
|
||||
iudvscf, iucom, iudvkb3
|
||||
USE control_ph, ONLY : zue, epsil
|
||||
USE recover_mod, ONLY : clean_recover
|
||||
USE output, ONLY : fildrho, fildvscf
|
||||
USE ramanm, ONLY : lraman, elop, iuchf, iud2w, iuba2
|
||||
!
|
||||
|
@ -66,13 +67,7 @@ SUBROUTINE close_phq( flag )
|
|||
IF ( me_pool == 0 .AND. &
|
||||
fildrho /= ' ') CLOSE( UNIT = iudrho, STATUS = 'KEEP' )
|
||||
!
|
||||
IF ( flag ) THEN
|
||||
!
|
||||
CALL seqopn( iunrec, 'recover', 'UNFORMATTED', exst )
|
||||
!
|
||||
CLOSE( UNIT = iunrec, STATUS = 'DELETE' )
|
||||
!
|
||||
END IF
|
||||
IF ( flag ) CALL clean_recover()
|
||||
!
|
||||
IF ( fildvscf /= ' ' ) CLOSE( UNIT = iudvscf, STATUS = 'KEEP' )
|
||||
!
|
||||
|
|
|
@ -14,7 +14,7 @@ MODULE recover_mod
|
|||
PRIVATE
|
||||
|
||||
|
||||
PUBLIC :: write_rec, read_rec
|
||||
PUBLIC :: write_rec, read_rec, clean_recover
|
||||
|
||||
CONTAINS
|
||||
|
||||
|
@ -126,4 +126,17 @@ CALL stop_clock ('read_rec')
|
|||
RETURN
|
||||
END SUBROUTINE read_rec
|
||||
|
||||
SUBROUTINE clean_recover()
|
||||
!
|
||||
USE iunits_ph, ONLY : iunrec
|
||||
IMPLICIT NONE
|
||||
LOGICAL :: exst
|
||||
!
|
||||
CALL seqopn( iunrec, 'recover', 'UNFORMATTED', exst )
|
||||
!
|
||||
CLOSE( UNIT = iunrec, STATUS = 'DELETE' )
|
||||
!
|
||||
END SUBROUTINE clean_recover
|
||||
|
||||
|
||||
END MODULE recover_mod
|
||||
|
|
Loading…
Reference in New Issue