parse_xxx


The Fortran90 module paramfile_io contains functions to obtain parameters from parameter files or interactively


Location in HEALPix directory tree: src/f90/mod/paramfile_io.f90


ARGUMENTS

name&dimensionality kind in/out description
       
fname CHR IN file containing the simulation parameters. If empty, parameters are obtained interactively.
handle PMF IN Object of type (paramfile_handle) used to store parameter information
keyname CHR IN name of the required parameter
default XXX IN optional argument containing the default value for a given simulation parameter; must be of appropriate type.
vmin XXX IN optional argument containing the minimum value for a given simulation parameter; must be of appropriate type.
vmax XXX IN optional argument containing the maximum value for a given simulation parameter; must be of appropriate type.
descr CHR IN optional argument containing a description of the required simulation parameter
filestatus CHR IN optional argument. If present, the parameter must be a valid filename. If filestatus=='new', the file must not exist; if filestatus=='old', the file must exist.

ROUTINES:
handle = parse_init (fname)

    initializes the parser to work on the file fname, or interactively, if fname is empty

intval = parse_int (handle, keyname, default, vmin, vmax, descr)

longval = parse_long (handle, keyname, default, vmin, vmax, descr)

realval = parse_real (handle, keyname, default, vmin, vmax, descr)

doubleval = parse_double (handle, keyname, default, vmin, vmax, descr)

stringval = parse_string (handle, keyname, default, descr, filestatus)

logicval = parse_lgt (handle, keyname, default, descr)

    These routines obtain integer(i4b), integer(i8b), real(sp), real(dp), character(len=*) and logical values, respectively


RELATED ROUTINES

This section lists the routines related to parse_xxx


concatnl
generates from a set of strings the multi-line description

Eric Hivon 2003-02-07