NAME
          newgrid - Allocates LPJ grid cells

     SYNOPSIS
          #include "lpj.h"

          Cell *newgrid(Config *config,const Standtype standtype[],
                        int nstand,int npft,int ncft);


     DESCRIPTION
          Function allocates grid cells and reads soil code, country
          code and coordinates. If restart filename is set state of
          grid cells is recovered from a restart file. The arguments
          of newgrid are:

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

          standtype
               Array of stand type definitions.

          nstand
               Number of stand types.

          npft Number of natural plant functional types.

          ncft Number of crop plant functional types.

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


     AUTHORS
          For authors and contributors see AUTHORS file


     COPYRIGHT
          (C) Potsdam Institute for Climate Impact Research (PIK), see
          COPYRIGHT file


     SEE ALSO
          readconfig(3), freegrid(3)







Man(1) output converted with man2html