-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcompile_info.F90
36 lines (34 loc) · 1.36 KB
/
compile_info.F90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
! This file must be recompiled at each compilation
! to get the current date and time,
! which are taken from preprocessor constants,
! and the current Git commit, which is passed in from Makefile.
! allow(procedure-not-in-module) ! fortitude linter
subroutine print_compile_info()
use iso_fortran_env, only: compiler_version, compiler_options
use mod_files, only: stdout
character(len=*), parameter :: ABIN_VERSION = '1.1'
write (stdout, *) ''
write (stdout, *) ' COMPILATION INFO'
write (stdout, *) ''
write (stdout, *) 'ABIN version '//ABIN_VERSION
write (stdout, '(a, a, 1x, a)') 'Compiled at ', __TIME__, __DATE__
write (stdout, *) 'Git commit '//GIT_COMMIT
!$ write (stdout, *) 'Compiled with parallel OpenMP support for PIMD.'
#ifdef USE_FFTW
write (stdout, *) 'Compiled with FFTW support.'
#endif
#ifdef USE_CP2K
write (stdout, *) 'Compiled with in-built CP2K interface.'
#endif
#ifdef USE_PLUMED
write (stdout, *) 'Compiled with PLUMED (static lib).'
#endif
#ifdef USE_MPI
write (stdout, *) 'Compiled with MPI support.'
write (stdout, *) '(used for REMD and direct CP2K and TeraChem interfaces.)'
#endif
write (stdout, *)
write (stdout, *) 'This program was compiled by '//compiler_version()
write (stdout, *) 'using the following compiler options:'
write (stdout, *) compiler_options()
end subroutine print_compile_info