(git:374b731)
Loading...
Searching...
No Matches
cp_files.F File Reference

Go to the source code of this file.

Modules

module  cp_files
 Utility routines to open and close files. Tracking of preconnections.
 

Functions/Subroutines

subroutine, public cp_files::close_file (unit_number, file_status, keep_preconnection)
 Close an open file given by its logical unit number. Optionally, keep the file and unit preconnected.
 
integer function, public cp_files::get_unit_number (file_name)
 Returns the first logical unit that is not preconnected.
 
subroutine, public cp_files::init_preconnection_list ()
 Allocate and initialise the list of preconnected units.
 
subroutine, public cp_files::open_file (file_name, file_status, file_form, file_action, file_position, file_pad, unit_number, debug, skip_get_unit_number, file_access)
 Opens the requested file using a free unit number.
 
logical function, public cp_files::file_exists (file_name)
 Checks if file exists, considering also the file discovery mechanism.
 
character(len=default_path_length) function, public cp_files::discover_file (file_name)
 Checks various locations for a file name.
 
character(len=default_path_length) function, public cp_files::get_data_dir ()
 Returns path of data directory if set, otherwise an empty string.
 

Variables

type(preconnection_type), dimension(max_preconnections) cp_files::preconnected