Set command line interface.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(command_line_interface), | intent(inout) | :: | cli | Command line interface handler. |
subroutine set_cli(cli)
!< Set command line interface.
type(command_line_interface), intent(inout) :: cli !< Command line interface handler.
call cli%add_group(description='linear constant coefficient equation test settings', group='lcce')
call cli%add(group='lcce', switch='-a', help='"a" coeff of "a * x + b" equation', required=.false., def='-1.0', act='store')
call cli%add(group='lcce', switch='-b', help='"b" coeff of "a * x + b" equation', required=.false., def='0.0', act='store')
call cli%add(group='lcce', switch='-U0', help='initial state', required=.false., def='1.0', act='store')
endsubroutine set_cli