default_example Subroutine

public subroutine default_example(self, name)

Populate test in case we find the default example/ directory

Arguments

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

Instance of the executable meta data

character(len=*), intent(in) :: name

Name of the package


Source Code

    subroutine default_example(self, name)

        !> Instance of the executable meta data
        type(example_config_t), intent(out) :: self

        !> Name of the package
        character(len=*), intent(in) :: name

        self%name = name // "-demo"
        self%source_dir = "example"
        self%main = "main.f90"

    end subroutine default_example