         NAME
              fopenoutput - creates LPJmL output files

         SYNOPSIS
              #include "lpj.h"

              Outputfile *fopenoutput(const Cell grid[],int nout,const Config *config);

         DESCRIPTION
              Function creates and opens output files specified in the
              LPJmL configuration.  The arguments of fopenoutput are:

              grid Pointer to LPJmL grid. Must be initialized by
                   newgrid().

              config
                   Pointer to LPJmL configuration data. Must be read by
                   readconfig().

              nout Maximum number of output files.

         RETURN VALUE
              Upon successful completion pointer to allocated output data
              is returned and NULL in case of failure.

         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
              fcloseoutput(3), readconfig(3), iterate(3), isopen(3)