dc_clock::create Interface Reference

Private Member Functions

subroutine dcclockcreate0 (clk, name)
 

Detailed Description

Definition at line 177 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclockcreate0()

subroutine dc_clock::create::dcclockcreate0 ( type(clock), intent(out)  clk,
character(*), intent(in)  name 
)
private

Definition at line 216 of file dc_clock.f90.

216  !
217  !=== CLOCK の初期化用サブルーチン
218  !
219  ! CLOCK 型の変数を利用する際にはまずこのサブルーチンによって
220  ! 初期化を行ってください. *name* には計測内容を与えてください.
221  !
222  use dc_message, only: messagenotify
223  use dc_date, only: dcdatetimecreate
224  implicit none
225  type(clock), intent(out):: clk
226  character(*), intent(in):: name
227  character(*), parameter:: subname = 'DCClockCreate'
228  continue
229  call beginsub(subname, 'name=%c', c1=trim(name), version=version)
230  if (clk % initialized) then
231  call messagenotify('W', subname, 'This argument (type CLOCK) is already initialized.')
232  call dbgmessage('already initialized')
233  goto 999
234  end if
235  clk % name = name
236  clk % elapsed_time = 0.0
237  clk % start_time = - 1.0
238  clk % initialized = .true.
239  call dcdatetimecreate(clk % start_date)
240  call dbgmessage('normal initialized')
241 999 continue
242  call endsub(subname)

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