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 157 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 1029 of file dc_clock.f90.

1030 use dc_message, only: messagenotify
1031 use dc_string, only: tochar, cprintf
1033 implicit none
1034 type(CLOCK), intent(inout):: clk
1035 character(*), intent(in):: name
1036 logical, intent(out), optional:: err
1037 character(STRING):: cause_c
1038 integer:: stat
1039 character(*), parameter:: subname = 'DCClockSetName'
1040 continue
1041 call beginsub(subname)
1042 stat = dc_noerr
1043 cause_c = 'CLOCK'
1044 if (.not. clk % initialized) then
1045 call messagenotify('W', subname, 'Call Create before Set_Name in dc_clock.')
1046 call dbgmessage('Ignored because input argument was not initialized.')
1047 stat = dc_enotinit
1048 goto 999
1049 end if
1050 clk % name = name
1051 call dbgmessage('set new name "%c"', c1=trim(clk % name))
1052999 continue
1053 call storeerror(stat, subname, err, cause_c)
1054 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: