new_dependency_tree Subroutine

public subroutine new_dependency_tree(self, verbosity, cache, path_to_config)

Create a new dependency tree

Arguments

Type IntentOptional Attributes Name
type(dependency_tree_t), intent(out) :: self

Instance of the dependency tree

integer, intent(in), optional :: verbosity

Verbosity of printout

character(len=*), intent(in), optional :: cache

Name of the cache file

character(len=*), intent(in), optional :: path_to_config

Path to the global config file.


Source Code

  subroutine new_dependency_tree(self, verbosity, cache, path_to_config)
    !> Instance of the dependency tree
    type(dependency_tree_t), intent(out) :: self
    !> Verbosity of printout
    integer, intent(in), optional :: verbosity
    !> Name of the cache file
    character(len=*), intent(in), optional :: cache
    !> Path to the global config file.
    character(len=*), intent(in), optional :: path_to_config

    call resize(self%dep)
    self%dep_dir = join_path("build", "dependencies")

    if (present(verbosity)) self%verbosity = verbosity

    if (present(cache)) self%cache = cache

    if (present(path_to_config)) self%path_to_config = path_to_config

  end subroutine new_dependency_tree