derived_filename Function

public function derived_filename(base, token, n_formats) result(fname)

Derive the output filename for token. One format -> base verbatim; many formats -> stem (a trailing known extension stripped) + canonical ext.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: base
character(len=*), intent(in) :: token
integer, intent(in) :: n_formats

Return Value character(len=:), allocatable