Get the directory containing the data files.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(shellig_type), | intent(in) | :: | me |
function get_data_file_dir(me) result(dir) class(shellig_type), intent(in) :: me character(len=:), allocatable :: dir if (allocated(me%igrf_dir)) then dir = trim(me%igrf_dir)//'/' else dir = 'data/igrf/' ! default end if end function get_data_file_dir