The Elk Code
checkstop.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
6
subroutine
checkstop
7
use
modmain
8
use
modmpi
9
use
moddelf
10
implicit none
11
! check for STOP file (only MPI master process)
12
if
(
mp_mpi
)
then
13
inquire
(file=
'STOP'
,exist=
tstop
)
14
if
(
tstop
)
then
15
write
(*,
'("Info(checkstop): STOP file exists")'
)
16
! delete the STOP file
17
call
delfile
(
'STOP'
)
18
end if
19
end if
20
! broadcast tstop from master process to all other processes
21
call
mpi_bcast(
tstop
,1,mpi_logical,0,
mpicom
,
ierror
)
22
end subroutine
23
moddelf
Definition:
moddelf.f90:6
modmpi::mp_mpi
logical mp_mpi
Definition:
modmpi.f90:17
modmain::tstop
logical tstop
Definition:
modmain.f90:1055
checkstop
subroutine checkstop
Definition:
checkstop.f90:7
modmain
Definition:
modmain.f90:6
moddelf::delfile
subroutine delfile(fname)
Definition:
moddelf.f90:15
modmpi
Definition:
modmpi.f90:6
modmpi::mpicom
integer mpicom
Definition:
modmpi.f90:11
modmpi::ierror
integer ierror
Definition:
modmpi.f90:19
checkstop.f90
Generated by
1.8.14