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 2 of file gdncvartostring.f90.

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

2  use dc_types, only: string
3  use dc_string, only: cprintf
6  implicit none
7  character(string):: result
8  type(gd_nc_variable), intent(in):: var
9  type(gd_nc_variable_entry):: ent
10 continue
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
integer function, public vtable_lookup(var, entry)
文字型変数の操作.
Definition: dc_string.f90:24
種別型パラメタを提供します。
Definition: dc_types.f90:49
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition: dc_types.f90:118
Here is the call graph for this function: