dc_clock::dcclocksetname Interface Reference

Private Member Functions

subroutine dcclocksetname0 (clk, name, err)
 

Detailed Description

Definition at line 168 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclocksetname0()

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

Definition at line 818 of file dc_clock.f90.

818  !
819  !=== 測定内容の名称を変更する.
820  !
821  ! CLOCK 変数 *clk* の計測内容の名称を変更します.
822  ! この名称は Create の *name* 引数で指定されたものです.
823  !
824  ! 第一引数 *clk* に対して DCClockCreate による初期化が行われていない場合,
825  ! エラーを発生させます. *err* を与える場合には *err* に .true. が返り,
826  ! プログラムは続行されます.
827  !
828  use dc_message, only: messagenotify
829  use dc_string, only: tochar, cprintf
831  implicit none
832  type(clock), intent(inout):: clk
833  character(*), intent(in):: name
834  logical, intent(out), optional:: err
835  character(STRING):: cause_c
836  integer:: stat
837  character(*), parameter:: subname = 'DCClockSetName'
838  continue
839  call beginsub(subname)
840  stat = dc_noerr
841  cause_c = 'CLOCK'
842  if (.not. clk % initialized) then
843  call messagenotify('W', subname, 'Call Create before Set_Name in dc_clock.')
844  call dbgmessage('Ignored because input argument was not initialized.')
845  stat = dc_enotinit
846  goto 999
847  end if
848  clk % name = name
849  call dbgmessage('set new name "%c"', c1=trim(clk % name))
850 999 continue
851  call storeerror(stat, subname, err, cause_c)
852  call endsub(subname)
integer, parameter, public dc_enotinit
Definition: dc_error.f90:557
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition: dc_error.f90:830
integer, parameter, public dc_noerr
Definition: dc_error.f90:509
文字型変数の操作.
Definition: dc_string.f90:24

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