gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_clock::dcclockstart Interface Reference

Public Member Functions

subroutine dcclockstart0 (clk, err)
 

Detailed Description

Definition at line 129 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclockstart0()

subroutine dc_clock::dcclockstart::dcclockstart0 ( type(clock), intent(inout)  clk,
logical, intent(out), optional  err 
)

計測の開始

このサブルーチンを呼んだ時点で計測を開始します。

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

Parameters
[in,out]clkCLOCK 型変数
[out]errエラーフラグ (省略可)。エラー時に .true.。

Definition at line 297 of file dc_clock.f90.

298 use dc_message, only: messagenotify
299 use dc_string, only: tochar
301 use dc_date, only: evalsec
302 !$ use omp_lib
303 implicit none
304 type(CLOCK), intent(inout):: clk
305 logical, intent(out), optional:: err
306 character(STRING):: cause_c
307 integer:: stat
308 character(*), parameter:: subname = 'DCClockStart'
309 continue
310 call beginsub(subname)
311 stat = dc_noerr
312 cause_c = 'CLOCK'
313 if (.not. clk % initialized) then
314 call messagenotify('W', subname, 'Call Create before Start in dc_clock.')
315 call dbgmessage('Ignored because input argument was not initialized.')
316 stat = dc_enotinit
317 goto 999
318 end if
319 call cpu_time(clk % start_time) ! (out)
320 !$ clk % start_time = omp_get_wtime()
321 call dbgmessage('name=%c, cpu_time=%f', &
322 & c1=trim(clk % name), d=(/clk % start_time/) )
323999 continue
324 call storeerror(stat, subname, err, cause_c)
325 call endsub(subname)
日付および時刻に関する手続きを提供するモジュール
Definition dc_date.f90:57
エラー処理用モジュール
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer, parameter, public dc_noerr
エラー等を保持
Definition dc_error.f90:468
integer, parameter, public dc_enotinit
-400 以下: dc ユーティリティのエラー
Definition dc_error.f90:534
メッセージの出力
文字型変数の操作
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: