Loading...
Searching...
No Matches
Functions/Subroutines
gdncvartostring.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

character(string) function gdncvartostring (var)
 

Function/Subroutine Documentation

◆ gdncvartostring()

character(string) function gdncvartostring ( type(gd_nc_variable), intent(in)  var)

Definition at line 1 of file gdncvartostring.f90.

2 use dc_types, only: string
3 use dc_string, only: cprintf
4 use gtdata_netcdf_internal, only: gd_nc_variable_entry, vtable_lookup
6 implicit none
7 character(string):: result
8 type(GD_NC_VARIABLE), intent(in):: var
9 type(GD_NC_VARIABLE_ENTRY):: ent
10continue
11 if (vtable_lookup(var, ent) /= 0) then
12 result = cprintf("GD_NC_VARIABLE(bad id %d)", i=(/var%id/))
13 else
14 result = cprintf("GD_NC_VARIABLE(file=%d, var=%d, dim=%d)", &
15 & i=(/ent%fileid, ent%varid, ent%dimid/))
16 endif
種別型パラメタを提供します。
Definition dc_types.f90:49
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:118
integer function, public vtable_lookup(var, entry)

References dc_types::string, and gtdata_netcdf_internal::vtable_lookup().

Here is the call graph for this function: