dc_args::debug Interface Reference

Private Member Functions

subroutine dcargsdebug0 (arg)
 

Detailed Description

Definition at line 286 of file dc_args.f90.

Member Function/Subroutine Documentation

◆ dcargsdebug0()

subroutine dc_args::debug::dcargsdebug0 ( type(args), intent(inout)  arg)
private

Definition at line 521 of file dc_args.f90.

521  !
522  ! デバッグオプションの自動設定を行います.
523  !
524  ! -D もしくは --debug が指定された際, 自動的に
525  ! dc_trace#SetDebug を呼び出すよう *arg* を設定します.
526  !
527  use dc_types, only: string
528  use dc_string, only: stoa, stoi
529  use dc_trace, only: setdebug
530  use dc_message, only: messagenotify
531  implicit none
532  type(args), intent(inout) :: arg
533  logical :: opt_debug
534  character(STRING) :: val_debug
535  character(len = *), parameter :: subname = 'DCArgsDebug'
536  continue
537  if (.not. arg % initialized) then
538  call messagenotify('W', subname, 'Call Open before Debug in dc_args.')
539  call dcargsopen(arg)
540  end if
541  call option(arg, stoa('-D', '--debug'), opt_debug, val_debug, &
542  & help="call dc_trace#SetDebug (display a lot of messages for debug). " // &
543  & "VAL is unit number (default is standard output)")
544  if (opt_debug) then
545  if (trim(val_debug) == '') then
546  call setdebug
547  else
548  call setdebug(stoi(val_debug))
549  end if
550  end if
551  return
subroutine, public setdebug(debug)
Definition: dc_trace.f90:288
文字型変数の操作.
Definition: dc_string.f90:24
種別型パラメタを提供します。
Definition: dc_types.f90:49
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition: dc_types.f90:118

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