gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
gtool_history_internal::lookup_variable_ord Interface Reference

Public Member Functions

integer function lookup_variable_ord (history, varname)
 

Detailed Description

Definition at line 81 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 291 of file gtool_history_internal.f90.

292 !
293 ! history 内の varname 変数の変数番号を返す.
294 ! 現在, 明示的に history 変数を与えない場合の変数番号の
295 ! 検索は出来ない.
296 !
297 use dc_types, only: string
298 use gtdata_generic, only: inquire
300 implicit none
301 type(GT_HISTORY), intent(in):: history
302 character(len = *), intent(in):: varname
303 character(len = string):: name
304 character(len = *), parameter:: subname = 'lookup_variable_ord'
305 continue
306 call beginsub(subname, 'var=%c', c1 = trim(varname))
307 if (associated(history % vars)) then
308 do, result = 1, size(history % vars)
309 call inquire(history % vars(result), name=name)
310 if (name == varname) goto 999
311 call dbgmessage('no match <%c> <%c>', c1=trim(name), c2=trim(varname))
312 enddo
313 endif
314 result = 0
315999 continue
316 call endsub(subname, "result=%d", i=(/result/))
Debug tracing module.
Definition dc_trace.f90:150
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:661
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:457
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:580
Provides kind type parameter values.
Definition dc_types.f90:55
integer, parameter, public string
Character length for 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: