gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_clock::dcclocksetname Interface Reference

Public Member Functions

subroutine dcclocksetname0 (clk, name, err)

Detailed Description

Definition at line 161 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 )

Change the measurement name

Changes the measurement name of CLOCK variable clk. This name was originally specified by the name argument in Create.

If clk has not been initialized by DCClockCreate, an error is raised. If err is provided, .true. is returned in err and the program continues.

Parameters
[in,out]clkCLOCK type variable
[in]nameNew measurement name
[out]errError flag (optional). .true. if error occurred.

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)
Error handling module.
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 or less: DC utilities errors
Definition dc_error.f90:534
integer, parameter, public dc_noerr
Error storage variables
Definition dc_error.f90:468
Message output module.
Handling character types.
Definition dc_string.f90:83

References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_error::dc_enotinit, dc_error::dc_noerr, dc_trace::endsub(), and dc_error::storeerror().

Here is the call graph for this function:

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