mirror of https://gitlab.com/QEF/q-e.git
52 lines
1.0 KiB
Fortran
52 lines
1.0 KiB
Fortran
!
|
|
! Copyright (C) 2001 PWSCF group
|
|
! This file is distributed under the terms of the
|
|
! GNU General Public License. See the file `License'
|
|
! in the root directory of the present distribution,
|
|
! or http://www.gnu.org/copyleft/gpl.txt .
|
|
!
|
|
!--------------------------------------------------------------------
|
|
subroutine stop_vdw
|
|
!--------------------------------------------------------------------
|
|
!
|
|
! Synchronize processes before stopping.
|
|
!
|
|
use control_flags, only: twfcollect
|
|
use io_files, only: iunwfc
|
|
use mp, only: mp_end, mp_barrier
|
|
USE parallel_include
|
|
#ifdef __PARA
|
|
|
|
integer :: info
|
|
logical :: op
|
|
|
|
call print_clock_vdw ()
|
|
|
|
inquire ( iunwfc, opened = op )
|
|
|
|
if ( op ) then
|
|
if (twfcollect) then
|
|
close (unit = iunwfc, status = 'delete')
|
|
else
|
|
close (unit = iunwfc, status = 'keep')
|
|
end if
|
|
end if
|
|
|
|
call mp_barrier()
|
|
|
|
! call mpi_finalize (info)
|
|
#endif
|
|
|
|
call mp_end()
|
|
|
|
#ifdef __T3E
|
|
!
|
|
! set streambuffers off
|
|
!
|
|
|
|
call set_d_stream (0)
|
|
#endif
|
|
|
|
stop
|
|
end subroutine stop_vdw
|