File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ else()
30
30
add_definitions (-DGLOBAL_DEBUG=PROGRESS_LOG_INFO )
31
31
endif ()
32
32
33
+ set (PROGRESS_VERSION "${PROJECT_VERSION} " )
34
+ add_definitions (-DPROJECT_VERSION= "${PROJECT_VERSION} " )
35
+ add_definitions (-DPROGRESS_VERSION=${PROGRESS_VERSION} )
36
+ message (STATUS "Setting PROGRESS_VERSION to '${PROGRESS_VERSION} '" )
37
+
33
38
set (GNU_C_FLAGS_DEBUG -O0 -g -Wall -Wimplicit -Wno-unknown-pragmas --coverage
34
39
-save-temps -std=c99 )
35
40
set (GNU_C_FLAGS_RELEASE -O3 -g -std=c99 )
Original file line number Diff line number Diff line change 3
3
!
4
4
!
5
5
6
+ #ifdef __GFORTRAN__
7
+ # define STRINGIFY_START(X) "&
8
+ # define STRINGIFY_END(X) &X"
9
+ #else /* default stringification */
10
+ # define STRINGIFY_(X) #X
11
+ # define STRINGIFY_START(X) &
12
+ # define STRINGIFY_END(X) STRINGIFY_(X)
13
+ #endif
14
+
6
15
module prg_progress_mod
7
16
8
17
use bml
@@ -15,11 +24,24 @@ module prg_progress_mod
15
24
16
25
integer , parameter :: dp = kind (1.0d0 )
17
26
27
+ public :: prg_version
18
28
public :: prg_progress_init
19
29
public :: prg_progress_shutdown
20
30
21
31
contains
22
32
33
+ ! > Print PROGRESS and BML versions
34
+ subroutine prg_version ()
35
+ character (len= :), allocatable :: astring
36
+ astring = STRINGIFY_START(PROGRESS_VERSION)
37
+ STRINGIFY_END(PROGRESS_VERSION)
38
+ write (6 ,* ) ' QMD-PROGRESS and BML are used!'
39
+ write (6 ,* ) ' QMD-PROGRESS VERSION: ' , astring
40
+ call bml_print_version()
41
+ write (6 ,* )
42
+
43
+ end subroutine prg_version
44
+
23
45
! > Initialize progress.
24
46
subroutine prg_progress_init ()
25
47
You can’t perform that action at this time.
0 commit comments