Variable finalization. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarclose (var, err) |
Variable finalization.
Definition in file gtvarclose.f90.
| subroutine gtvarclose | ( | type(gt_variable), intent(in), target | var, |
| logical, intent(out), optional | err | ||
| ) |
Finalize variable
Performs finalization for variable var. Variables that have been Opened or Created must be finalized using this subroutine at the end of the program.
If an error occurs during finalization, outputs a message and terminates the program. If err is provided, returns .true. in that argument and program does not terminate.
| [in] | var | Variable handle to close |
| [out] | err | Error flag (optional) |
Definition at line 48 of file gtvarclose.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), dc_error::gt_ebadvar, gtdata_internal_map::map_lookup(), gtdata_internal_map::maptabdelete(), dc_error::storeerror(), gtdata_internal_vartable::vartabledelete(), and gtdata_internal_vartable::vartablelookup().