gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
hstnmlinfonames.f90
Go to the documentation of this file.
1
14
37 function hstnmlinfonames( gthstnml ) result(result)
41 use dc_types, only: string
42 implicit none
43 character(STRING):: result
44 type(gthst_nmlinfo), intent(in):: gthstnml
45
46 !-----------------------------------
47 ! 作業変数
48 ! Work variables
49 type(gthst_nmlinfo_entry), pointer:: hptr =>null()
50 logical:: first
51!!$ character(*), parameter:: subname = 'HstNmlInfoNames'
52 continue
53
54 result = ''
55 first = .true.
56
57 !-----------------------------------------------------------------
58 ! 初期設定のチェック
59 ! Check initialization
60 !-----------------------------------------------------------------
61 if ( .not. gthstnml % initialized ) goto 999
62
63 !-----------------------------------------------------------------
64 ! 情報の取り出し
65 ! Fetch information
66 !-----------------------------------------------------------------
67 hptr => gthstnml % gthstnml_list
68 do while ( associated( hptr % next ) )
69 call listnext( gthstnml_list = hptr ) ! (inout)
70 if ( first ) then
71 result = adjustl( hptr % name )
72 first = .false.
73 else
74 result = trim( result ) // name_delimiter // adjustl( hptr % name )
75 end if
76 end do
77
78 !-----------------------------------------------------------------
79 ! 終了処理, 例外処理
80 ! Termination and Exception handling
81 !-----------------------------------------------------------------
82999 continue
83 nullify( hptr )
84 end function hstnmlinfonames
character(string) function hstnmlinfonames(gthstnml)
種別型パラメタを提供します。
Definition dc_types.f90:55
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:137
character(1), parameter, public name_delimiter