rget(3f) - [ARGUMENTS:M_kracken] given keyword fetch real value from command argument (LICENSE:PD)
Synopsis
Description
Options
Returns
Examples
See Also
Author
License
function rget(keyword) result(value)
character(len=*),intent(in) :: keyword real :: value
The rget(3f) function returns a scalar real 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 REAL value.
VALUE real value returned by function
Sample program
program demo_rget use M_kracken, only: kracken, rget implicit none real :: val ! define command arguments and parse user command call kracken(demo,-val 3.1416 ) val=rget(demo_val) ! get any values specified on -val option write(*,*)val ! print the value end program demo_rgetExample program runs:
$ demo_rget 3.14159989$ demo_rget -val 10 10.0000000
$ demo_rget -val 3.000 3.00000000
M_kracken(3fm), kracken(3f)dget(3f), dgets(3f), iget(3f), igets(3f), lget(3f), lgets(3f), rget(3f), rgets(3f), sget(3f), sgets(3f), retrev(3f)
parse,dissect,store,setprompts,show
John S. Urban
Public Domain
Nemo Release 3.1 | rget (3) | February 23, 2025 |