Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_args::debug Interface Reference

Public 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)

Definition at line 520 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
種別型パラメタを提供します。
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: