SF_VERSION

Description

SciFortran module containing and printing its version

Quick access

Variables:

scifor_version_sha1

Routines:

code_version(), scifor_version()

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): sha1 and Timestamp: + d Month yyyy h:mm:ss.mmm. The same lines are written to the file scifor_version.inc in 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): revision and Timestamp: + d Month yyyy h:mm:ss.mmm. The same lines are written to the file NAME_version.inc in the current directory, overwriting it. It is the generalization of scifor_version to 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