SF_VERSION
Description
SciFortran module containing and printing its version
Quick access
- Variables:
- Routines:
Variables
- sf_version/scifor_version_sha1
SHA1 of the git commit of this SciFortran version
- Type:
character(len=41)
- Attributes:
public, parameter
- Default:
“@git_sha1@”
Subroutines and functions
- subroutine sf_version/scifor_version()
This subroutine prints the version of the SciFortran library, i.e. the git SHA1 stored in
scifor_version_sha1, and the current timestamp to the standard output:SCIFOR VERSION (GIT): sha1andTimestamp: + d Month yyyy h:mm:ss.mmm. The same lines are written to the filescifor_version.incin the current directory, overwriting it.
- subroutine sf_version/code_version(revision[, name, git])
This subroutine prints the version of a code and the current timestamp to the standard output, as
NAME VERSION (GIT): revisionandTimestamp: + d Month yyyy h:mm:ss.mmm. The same lines are written to the fileNAME_version.incin the current directory, overwriting it. It is the generalization ofscifor_versionto any code.- Parameters:
revision [character(len=*)] – version of the code, e.g. the git SHA1
- Options:
name [character(len=*)] – optional: name of the code, default ‘code’
git [logical] – optional: .true. (default) GIT label, .false. plain VERSION