quantum-espresso/XClib/xclib_utils_and_para.f90

43 lines
1.3 KiB
Fortran
Raw Normal View History

2020-10-19 02:16:45 +08:00
!
! Copyright (C) Quantum ESPRESSO 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 .
!
!-----------------------------------------------------
2021-02-16 03:23:10 +08:00
MODULE xclib_utils_and_para
!-----------------------------------------------------
2022-05-16 21:55:59 +08:00
!! MPI stuff and error vars.
!
2020-10-19 02:16:45 +08:00
#if defined (__MPI)
!
! Include file for MPI
!
#if defined (__MPI_MODULE)
USE mpi
#else
INCLUDE 'mpif.h'
#endif
#else
! dummy world and null communicator
INTEGER, PARAMETER :: MPI_COMM_WORLD = 0
INTEGER, PARAMETER :: MPI_COMM_NULL = -1
INTEGER, PARAMETER :: MPI_COMM_SELF = -2
#endif
2021-02-16 03:23:10 +08:00
INTEGER, PARAMETER :: stdout = 6
2022-05-16 21:55:59 +08:00
!! standard output unit
2021-02-16 03:23:10 +08:00
!
LOGICAL :: nowarning = .FALSE.
2022-05-16 21:55:59 +08:00
!! switch for warning messages
!
CHARACTER(LEN=35) :: error_msg(5)
DATA error_msg / 'Bad args. in EXPINT function ', &
'Series failed in EXPINT function ', &
'wgga_analy_erfc: not coded Wcx part', &
'Sorting GGA-AHs failed ', &
'Sorting vdW-DF-AHs failed ' /
2022-05-16 21:55:59 +08:00
!
2021-02-16 03:23:10 +08:00
END MODULE xclib_utils_and_para