-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSetVersion.f90
50 lines (26 loc) · 1.25 KB
/
SetVersion.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
!=======================================================================
SUBROUTINE SetVersion
! This routine sets the version number. By doing it this way instead
! of the old way of initializing it in a module, we will no longer
! have to recompile everything every time we change versions.
USE General
USE NWTC_Library
IMPLICIT NONE
! Local Variables:
CHARACTER(6) :: Prcsn ! String containing a description of the as-compiled precision.
ProgName = 'FAST'
ProgVer = '(v7.01.00a-bjj, 16-Feb-2012)'
IF ( ReKi == SiKi ) THEN ! Single precision
Prcsn = 'SINGLE'
ELSEIF ( ReKi == R8Ki ) THEN ! Double precision
Prcsn = 'DOUBLE'
ELSE ! Unknown precision
Prcsn = 'UNKNWN'
ENDIF
IF ( Cmpl4SFun ) THEN ! FAST has been compiled as an S-Function for Simulink
ProgVer = TRIM(ProgVer)//'-Compiled as S-Function for Simulink'
ELSEIF( ReKi /= SiKi ) THEN ! Compiled using something other than single precision
ProgVer = TRIM(ProgVer)//'-Compiled using '//Prcsn//' precision'
ENDIF
RETURN
END SUBROUTINE SetVersion