Open gtool4 data. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvaropen (var, url, writable, err) |
Open gtool4 data.
Definition in file gtvaropen.f90.
| subroutine gtvaropen | ( | type(gt_variable), intent(out) | var, |
| character(*), intent(in) | url, | ||
| logical, intent(in), optional | writable, | ||
| logical, intent(out), optional | err | ||
| ) |
Open gtool4 variable
Opens the gtool variable identified by url and stores it in var. If writable is set to .true., attempts to open for writing. The default is to open read-only. (Note: writable behavior is not yet guaranteed.)
Variables opened with Open must always be closed with Close.
If an error occurs and err is provided, err returns .true.. If err is not provided, the program terminates.
Open is a generic name for 2 subroutines; it is also possible to open by specifying a dimension of a variable.
| [out] | var | Variable handle |
| [in] | url | Variable URL |
| [in] | writable | Open for writing (optional) |
| [out] | err | Error flag (optional) |
Definition at line 64 of file gtvaropen.f90.
References dc_trace::beginsub(), dc_error::dc_noerr, dc_trace::endsub(), dc_error::gt_enotvar, gtdata_internal_map::gtvar_dump(), gtdata_internal_map::map_create(), dc_present::present_and_true(), dc_error::storeerror(), dc_types::string, and dc_url::url_chop_iorange().