dm_version Module

DMPACK version and auxiliary procedures.


Used by

  • module~~dm_version~~UsedByGraph module~dm_version dm_version module~dm_api_status dm_api_status module~dm_api_status->module~dm_version module~dm_atom dm_atom module~dm_atom->module~dm_version module~dm_html dm_html module~dm_atom->module~dm_html module~dm_html->module~dm_version module~dm_rpc dm_rpc module~dm_rpc->module~dm_version module~dmpack dmpack module~dmpack->module~dm_version module~dmpack->module~dm_api_status module~dmpack->module~dm_atom module~dmpack->module~dm_html module~dmpack->module~dm_rpc proc~dm_arg_read dm_arg_read proc~dm_arg_read->module~dm_version proc~dm_test_dummy_beat dm_test_dummy_beat proc~dm_test_dummy_beat->module~dm_version proc~dm_test_run dm_test_run proc~dm_test_run->module~dm_version

Variables

Type Visibility Attributes Name Initial
character(len=*), public, parameter :: DM_COPYRIGHT = 'Copyright (c) 2024, Philipp Engel'

DMPACK copyright string.

integer, public, parameter :: DM_VERSION_MAJOR = 0

DMPACK major version, from 0 to 9.

integer, public, parameter :: DM_VERSION_MINOR = 9

DMPACK minor version, from 0 to 9.

integer, public, parameter :: DM_VERSION_PATCH = 6

DMPACK patch level, from 0 to 9.

character(len=*), public, parameter :: DM_VERSION_STRING = achar(DM_VERSION_MAJOR+48)//'.'//achar(DM_VERSION_MINOR+48)//'.'//achar(DM_VERSION_PATCH+48)

DMPACK version as string.


Interfaces

public interface dm_version_out

Generic DMPACK version output routine.

  • private subroutine dm_version_out_app(name, major, minor, patch)

    Prints application and DMPACK library version to standard output.

    Arguments

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

    Application name.

    integer, intent(in) :: major

    Major version number of application.

    integer, intent(in) :: minor

    Minor version number of application.

    integer, intent(in) :: patch

    Patch level of application.

  • private subroutine dm_version_out_lib()

    Prints DMPACK library version to standard output.

    Arguments

    None

public interface dm_version_to_string

Generic DMPACK version formatters.

  • 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.