The Elk Code
 
Loading...
Searching...
No Matches
checkrst.f90
Go to the documentation of this file.
1
2! Copyright (C) 2024 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
6subroutine checkrst
7use modmain
8use modmpi
9use moddelf
10implicit none
11! check for RESTART file (only MPI master process)
12if (mp_mpi) then
13 inquire(file='RESTART',exist=trestart)
14 if (trestart) then
15 write(*,'("Info(checkrst): RESTART file exists")')
16! delete the RESTART file
17 call delfile('RESTART')
18 end if
19end if
20! broadcast trestart from master process to all other processes
21call mpi_bcast(trestart,1,mpi_logical,0,mpicom,ierror)
22end subroutine
23
subroutine checkrst
Definition checkrst.f90:7
subroutine delfile(fname)
Definition moddelf.f90:15
logical trestart
Definition modmain.f90:1054
integer ierror
Definition modmpi.f90:19
integer mpicom
Definition modmpi.f90:11
logical mp_mpi
Definition modmpi.f90:17