Looks for a specific file for the libsim package.
It searches in different directories in the following order:
- current working directory
- directory specified by the environmental variabile
LIBSIM_DATA
for data files or LIBSIM_CONFIG
for configuration files, if defined
- directory
/usr/local/share/libsim
for data files or /usr/local/etc/libsim
for configuration files
- directory
/usr/share/libsim
for data files or /etc/libsim
for configuration files. filename prefixed by "cwd:" or "share:" force search in current working directory or other package paths respectively default is everywhere for data files and package paths only for config files It returns the full path to the existing file or an empty string if not found.
- Parametri
-
[in] | filename | name of the file to be searched, it must be a relative path name |
[in] | filetype | type of file, the constants ::filetype_data or ::filetype_config have to be used |
Definizione alla linea 359 del file file_utilities.F90.