         NAME
              freegrid - Deallocate memory of LPJmL grid

         SYNOPSIS
              #include "lpj.h"

              void freegrid(Cell grid[],int npft,const Config *config);

         DESCRIPTION
              Function deallocates memory of LPJmL grid.  The arguments of
              freegrid are:

              grid Cell grid array allocated and initialized by newgrid().

              npft Number of natural plant functional types.

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

         RETURN VALUE
              None

         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
              readconfig(3), newgrid(3)