dc_clock::dcclockstart Interface Reference

Private Member Functions

subroutine dcclockstart0 (clk, err)
 

Detailed Description

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

Definition at line 262 of file dc_clock.f90.

262  !
263  !=== 計測の開始
264  !
265  ! このサブルーチンを呼んだ時点で計測を開始します.
266  !
267  ! 第一引数 *clk* に対して DCClockCreate による初期化が行われていない場合,
268  ! エラーを発生させます. *err* を与える場合には *err* に .true. が返り,
269  ! プログラムは続行されます.
270  !
271  use dc_message, only: messagenotify
272  use dc_string, only: tochar
273  use dc_types, only: dp
275  use dc_date, only: evalsec
276  implicit none
277  type(clock), intent(inout):: clk
278  logical, intent(out), optional:: err
279  character(STRING):: cause_c
280  integer:: stat
281  character(*), parameter:: subname = 'DCClockStart'
282  continue
283  call beginsub(subname)
284  stat = dc_noerr
285  cause_c = 'CLOCK'
286  if (.not. clk % initialized) then
287  call messagenotify('W', subname, 'Call Create before Start in dc_clock.')
288  call dbgmessage('Ignored because input argument was not initialized.')
289  stat = dc_enotinit
290  goto 999
291  end if
292  call cpu_time(clk % start_time) ! (out)
293  call dbgmessage('name=%c, cpu_time=%f', &
294  & c1=trim(clk % name), d=(/clk % start_time/) )
295 999 continue
296  call storeerror(stat, subname, err, cause_c)
297  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
integer, parameter, public dp
倍精度実数型変数
Definition: dc_types.f90:83
文字型変数の操作.
Definition: dc_string.f90:24
種別型パラメタを提供します。
Definition: dc_types.f90:49

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