Bug fix: fildrho is opened by ionode but was closed by all processors with

me_pool=0.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6184 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
dalcorso 2009-11-20 14:58:47 +00:00
parent dc55c9662b
commit 9e158230bb
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ SUBROUTINE close_phq( flag )
USE io_files, ONLY : iunigk
USE control_flags, ONLY : twfcollect
USE mp_global, ONLY : me_pool
USE io_global, ONLY : ionode, stdout
USE uspp, ONLY : okvan
USE units_ph, ONLY : iuwfc, iudwf, iubar, iudrhous, iuebar, iudrho, &
iudvscf, iucom, iudvkb3
@ -64,7 +65,7 @@ SUBROUTINE close_phq( flag )
ENDIF
ENDIF
!
IF ( me_pool == 0 .AND. &
IF ( ionode .AND. &
fildrho /= ' ') CLOSE( UNIT = iudrho, STATUS = 'KEEP' )
!
IF ( flag ) CALL clean_recover()