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

Public Member Functions

subroutine dcclocksetname0 (clk, name, err)

Detailed Description

Definition at line 198 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclocksetname0()

subroutine dc_clock::set_name::dcclocksetname0 ( type(clock), intent(inout) clk,
character(*), intent(in) name,
logical, intent(out), optional err )

測定内容の名称を変更する

CLOCK 変数 clk の計測内容の名称を変更します。 この名称は Create の name 引数で指定されたものです。

clk に対して DCClockCreate による初期化が行われていない場合、 エラーを発生させます。err を与える場合には err に .true. が返り、 プログラムは続行されます。

Parameters
[in,out]clkCLOCK 型変数
[in]name新しい計測内容の名称
[out]errエラーフラグ (省略可)。エラー時に .true.。

Definition at line 1042 of file dc_clock.f90.

1043 use dc_message, only: messagenotify
1044 use dc_string, only: tochar, cprintf
1046 implicit none
1047 type(CLOCK), intent(inout):: clk
1048 character(*), intent(in):: name
1049 logical, intent(out), optional:: err
1050 character(STRING):: cause_c
1051 integer:: stat
1052 character(*), parameter:: subname = 'DCClockSetName'
1053 continue
1054 call beginsub(subname)
1055 stat = dc_noerr
1056 cause_c = 'CLOCK'
1057 if (.not. clk % initialized) then
1058 call messagenotify('W', subname, 'Call Create before Set_Name in dc_clock.')
1059 call dbgmessage('Ignored because input argument was not initialized.')
1060 stat = dc_enotinit
1061 goto 999
1062 end if
1063 clk % name = name
1064 call dbgmessage('set new name "%c"', c1=trim(clk % name))
1065999 continue
1066 call storeerror(stat, subname, err, cause_c)
1067 call endsub(subname)
エラー処理用モジュール
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer, parameter, public dc_enotinit
-400 以下: dc ユーティリティのエラー
Definition dc_error.f90:534
integer, parameter, public dc_noerr
エラー等を保持
Definition dc_error.f90:468
メッセージの出力
文字型変数の操作
Definition dc_string.f90:83

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