Utility routines to open and close files.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_files' | |
integer, | private, | parameter | :: | max_preconnections | = | 10 | |
integer, | private, | parameter | :: | max_unit_number | = | 999 | |
type(preconnection_type), | private, | DIMENSION(max_preconnections) | :: | preconnected |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=default_path_length), | private | :: | file_name | = | "" | ||
integer, | private | :: | unit_number | = | -1 |
Returns the first logical unit that is not preconnected
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | file_name |
Checks if file exists, considering also the file discovery mechanism.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name |
Add an entry to the list of preconnected units
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | |||
integer, | intent(in) | :: | unit_number |
Close an open file given by its logical unit number. Optionally, keep the file and unit preconnected.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit_number | |||
character(len=*), | intent(in), | optional | :: | file_status | ||
logical, | intent(in), | optional | :: | keep_preconnection |
Remove an entry from the list of preconnected units
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | |||
integer | :: | unit_number |
Opens the requested file using a free unit number
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | |||
character(len=*), | intent(in), | optional | :: | file_status | ||
character(len=*), | intent(in), | optional | :: | file_form | ||
character(len=*), | intent(in), | optional | :: | file_action | ||
character(len=*), | intent(in), | optional | :: | file_position | ||
character(len=*), | intent(in), | optional | :: | file_pad | ||
integer, | intent(inout) | :: | unit_number | |||
integer, | intent(in), | optional | :: | debug | ||
logical, | intent(in), | optional | :: | skip_get_unit_number | ||
character(len=*), | intent(in), | optional | :: | file_access |
file access mode |
Print the list of preconnected units
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | output_unit |
which unit to print to (optional) |