next up previous contents index
Next: 11.3.4 integer function iffputarr() Up: 11.3 The Fortran interface to Previous: 11.3.2 integer function iffputsca()


11.3.3 integer function iffgetsca()

The iffgetsca() function takes two arguments: the first is a character string (up to 128 characters) that names an existing IFEFFIT scalar (following the naming rules outlined in chapter 3), and the second is a double precision variable. The effect is to retrieve the value of the named IFEFFIT scalar and put it into the provided Fortran variable. If the scalar does not exist in the IFEFFIT session, the value will be set to 0.

iffgetsca() always returns 0.

       i = ifeffit(' set var = sqrt(100.0)')
       i = iffgetsca('var', x)
       print*, ' x = ', x
would show the value 10.0.



Matt Newville
2004-02-09