         NAME
              readconfig - Reads LPJmL configuration

         SYNOPSIS
              #include "lpj.h"

              Bool readconfig(Config *config,const char *filename,
                              Fscanpftparfcn scanfcns[],int ntypes,
                              int nout,int *argc,char ***argv,
                              const char *usage);

         DESCRIPTION
              Function reads LPJmL configuration.  The arguments of
              readconfig are:

              config
                   Pointer to LPJmL configuration data. Must be
                   initialized by initmpiconfig() or initconfig().

              filename
                   Default configuration filename if no filename is given
                   as an argument.

              scanfcns
                   Vector of scan functions for PFT-specific parameters.

              ntypes
                   Number of plant functional type (PFT) classes.

              nout Maximum number of output files.

              argc Pointer to the number of arguments.

              argv Pointer to argument vector.

              usage
                   Usage string printed in case of error in argument list
                   or NULL.

         RETURN VALUE
              Upon successful completion FALSE is returned and TRUE in
              case of error.

         AUTHORS
              Werner von Bloh (Werner.von.Bloh@pik-potsdam.de), Sibyll
              Schaphoff (Sibyll.Schaphoff@pik-potsdam.de), Stefanie Rost
              (Jachner) (Stefanie.Rost@pik-potsdam.de), Marlies
              Gumpenberger (Marlies.Gumpenberger@pik-potsdam.de), Tim
              Beringer (Erbrecht) (Tim.Beringer@pik-potsdam.de), Christoph
              Mueller (Christoph.Mueller@pik-potsdam.de) Jens Heinke
              (Jens.Heinke@pik-potsdam.de), Hester Biemans
              (Hester.Biemans@wur.nl), Kirsten Thonicke
              (Kirsten.Thonicke@pik-potsdam.de), Ursula Heyder
              (Ursula.Heyder@pik-potsdam.de),

         SEE ALSO
              initmpiconfig(3), initconfig(3), freeconfig(3)