[UP]


Manual Reference Pages  - dget (3)

NAME

dget(3f) - [ARGUMENTS:M_kracken] given keyword fetch doubleprecision value from command argument (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Example
See Also
Author
License

SYNOPSIS

function dget(keyword) result(value)

    character(len=*),intent(in)  :: keyword
    doubleprecision              :: value

DESCRIPTION

The dget(3f) function returns a scalar doubleprecision value from a command line argument using the M_kracken(3fm) module.

OPTIONS

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.

RETURNS

VALUE doubleprecision value returned by function

EXAMPLE

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_dget

Example program runs:

   $ demo_dget
      3.14159989

$ demo_dget -val 10 10.0000000

$ demo_dget -val 3.000 3.00000000

SEE ALSO

M_kracken(3f),
  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(3f), dissect(3f), store(3f), setprompts(3f), show(3f)

AUTHOR

John S. Urban

LICENSE

Public Domain


dget (3) October 17, 2020
Generated by manServer 1.08 from 82dff4ef-4dc5-4abe-931a-1d931cc43ae3 using man macros.