libsim  Versione 7.1.7

◆ optionparser_add_darray()

subroutine optionparser_add_darray ( type(optionparser), intent(inout)  this,
character(len=*), intent(in)  short_opt,
character(len=*), intent(in)  long_opt,
type(arrayof_doubleprecision), target  dest,
double precision, dimension(:), optional  default,
character(len=*), optional  help 
)

Add a new option with a double precision type array argument.

When parsing will be performed, if the requested option is encountered, its corresponding compulsory argument will be copied into the provided destination. The argument must be provided in the form of comma-separated list of values and is stored in an object of type arrayof_doubleprecision (module array_utilities). An optional default value can be provided for the destination. Please use the generic optionparser_add method rather than this particular method.

Parametri
[in,out]thisoptionparser object
[in]short_optthe short option (may be empty)
[in]long_optthe long option (may be empty)
destthe destination of the option parse result
defaultthe default value to give to dest if option is not found
helpthe help message that will be formatted and pretty-printed on screen

Definizione alla linea 1360 del file optionparser_class.F90.

1361 ENDDO
1362 
1363 END SUBROUTINE dirty_char_assignment
1364 
1365 END MODULE optionparser_class
Module for parsing command-line optons.

Generated with Doxygen.