dget(3f) - [ARGUMENTS:M_kracken] given keyword fetch doubleprecision value from command argument (LICENSE:PD)
Synopsis
Description
Options
Returns
Examples
See Also
Author
License
function dget(keyword) result(value)
character(len=*),intent(in) :: keyword doubleprecision :: value
The dget(3f) function returns a scalar doubleprecision value from a command line argument using the M_kracken(3fm) module.
KEYWORD the dictionary keyword (in form VERB_KEYWORD) to retrieve. The VERB name comes from the first argument of the KRACKEN(3f) call. The KEYWORD is a keyword from the KRACKEN(3f) call that should be interpreted as a doubleprecision value.
VALUE doubleprecision value returned by function
Sample program
program demo_dget use M_kracken, only: kracken, dget implicit none doubleprecision :: val ! define command arguments and parse user command call kracken(demo,-val 3.1416 ) val=dget(demo_val) ! get any values specified on -val option write(*,*)val ! print the value end program demo_dgetExample program runs:
$ demo_dget 3.14159989$ demo_dget -val 10 10.0000000
$ demo_dget -val 3.000 3.00000000
dget(3f), dgets(3f), iget(3f), igets(3f), lget(3f), lgets(3f), rget(3f), rgets(3f), sget(3f), sgets(3f), retrev(3f)
M_kracken(3f), kracken(3f) parse(3f), dissect(3f), store(3f), setprompts(3f), show(3f)
John S. Urban
Public Domain
Nemo Release 3.1 | dget (3) | February 23, 2025 |