gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Functions/Subroutines
gdncvartostring.f90 File Reference

netCDF 変数を文字列表現に変換 More...

Go to the source code of this file.

Functions/Subroutines

character(string) function gdncvartostring (var)
 

Detailed Description

netCDF 変数を文字列表現に変換

Author
GFD Dennou Club

Definition in file gdncvartostring.f90.

Function/Subroutine Documentation

◆ gdncvartostring()

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

変数ハンドルを文字列に変換

デバッグ用に変数の文字列表現を返します。

Parameters
[in]var変数ハンドル
Returns
変数の文字列表現

Definition at line 33 of file gdncvartostring.f90.

34 use dc_types, only: string
35 use dc_string, only: cprintf
36 use gtdata_netcdf_internal, only: gd_nc_variable_entry, vtable_lookup
38 implicit none
39 character(string):: result
40 type(GD_NC_VARIABLE), intent(in):: var
41 type(GD_NC_VARIABLE_ENTRY):: ent
42continue
43 if (vtable_lookup(var, ent) /= 0) then
44 result = cprintf("GD_NC_VARIABLE(bad id %d)", i=(/var%id/))
45 else
46 result = cprintf("GD_NC_VARIABLE(file=%d, var=%d, dim=%d)", &
47 & i=(/ent%fileid, ent%varid, ent%dimid/))
48 endif
文字型変数の操作
Definition dc_string.f90:83
種別型パラメタを提供します。
Definition dc_types.f90:55
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:137
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: