dm_version_to_string Interface

public interface dm_version_to_string

Generic DMPACK version formatters.

Called by

interface~~dm_version_to_string~~CalledByGraph interface~dm_version_to_string dm_version_to_string proc~dm_test_dummy_beat dm_test_dummy_beat proc~dm_test_dummy_beat->interface~dm_version_to_string interface~dm_test_dummy dm_test_dummy interface~dm_test_dummy->proc~dm_test_dummy_beat

Module Procedures

private pure function dm_version_to_string_app(name, major, minor, patch, library) result(str)

Returns allocatable string of application version, with optional DMPACK library version appended if library is .true..

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name

App name.

integer, intent(in) :: major

App major version.

integer, intent(in) :: minor

App minor version.

integer, intent(in) :: patch

App patch version.

logical, intent(in), optional :: library

Append DMPACK library version.

Return Value character(len=:), allocatable

App and library version string.

private pure elemental function dm_version_to_string_long(major, minor, patch) result(str)

Utility function that returns a five characters long version string with patch level, for example, 1.0.0.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: major

Major version number.

integer, intent(in) :: minor

Minor version number.

integer, intent(in) :: patch

Patch level.

Return Value character(len=5)

Output string.

private pure elemental function dm_version_to_string_short(major, minor) result(str)

Utility function that returns a three characters long version string, for example, 1.0.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: major

Major version number.

integer, intent(in) :: minor

Minor version number.

Return Value character(len=3)

Output string.