gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
gtool_history_internal::lookup_variable_ord Interface Reference

Public Member Functions

integer function lookup_variable_ord (history, varname)

Detailed Description

Definition at line 82 of file gtool_history_internal.f90.

Constructor & Destructor Documentation

◆ lookup_variable_ord()

integer function gtool_history_internal::lookup_variable_ord::lookup_variable_ord ( type(gt_history), intent(in) history,
character(len = *), intent(in) varname )

Definition at line 298 of file gtool_history_internal.f90.

299 !
300 ! history 内の varname 変数の変数番号を返す.
301 ! 現在, 明示的に history 変数を与えない場合の変数番号の
302 ! 検索は出来ない.
303 !
304 use dc_types, only: string
305 use gtdata_generic, only: inquire
307 implicit none
308 type(GT_HISTORY), intent(in):: history
309 character(len = *), intent(in):: varname
310 character(len = string):: name
311 character(len = *), parameter:: subname = 'lookup_variable_ord'
312 continue
313 call beginsub(subname, 'var=%c', c1 = trim(varname))
314 if (associated(history % vars)) then
315 do, result = 1, size(history % vars)
316 call inquire(history % vars(result), name=name)
317 if (name == varname) goto 999
318 call dbgmessage('no match <%c> <%c>', c1=trim(name), c2=trim(varname))
319 enddo
320 endif
321 result = 0
322999 continue
323 call endsub(subname, "result=%d", i=(/result/))
デバッグ時の追跡用モジュール
Definition dc_trace.f90:150
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:680
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:476
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:599
種別型パラメタを提供します。
Definition dc_types.f90:55
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:137

References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), and dc_types::string.

Here is the call graph for this function:

The documentation for this interface was generated from the following file: