Default LPJmL configuration file

/*********************************************************************/
/*                                                                   */
/*                   l  p  j  m  l  .  c  o  n  f                    */
/*                                                                   */
/* Default configuration file for LPJmL C Version 3.4.018            */
/*                                                                   */
/* Configuration file is divided into five sections:                 */
/*                                                                   */
/*  I.   Simulation description and type section                     */
/*  II.  Input parameter section                                     */
/*  III. Input data section                                          */
/*  IV.  Output data section                                         */
/*  V.   Run settings section                                        */
/*                                                                   */
/* Last change: 12.12.2008                                           */
/*                                                                   */
/*********************************************************************/

#include "include/conf.h" /* include constant definitions */

#define CONST 2
#define NEW 3

#define RIVER_ROUTING /* river routing enabled; exclude this line to disable river routing */
#define ISRANDOM      /* random generation of daily precipitation */
#define WITH_LAIMAX_CFT 
#define WITH_GRIDBASED  /* grid based PFT output enabled */
/* #define WITH_LANDUSE */ /* NO_LANDUSE: land use disabled; WITH_LANDUSE: land use enabled */

/*===================================================================*/
/*  I. Simulation description and type section                       */
/*===================================================================*/

"LPJmL benchmark" /* Simulation description **/
LPJML             /* Simulation type with managed land use */
#ifdef ISRANDOM
RANDOM_PREC /* Random weather generator for precipitation enabled */
RANDOM_SEED /* seed for random number generator */
#else
INTERPOLATE_PREC
#endif
#ifdef CLIMATE_MODEL
CLIMATE_SCENARIO
#else
NO_CLIMATE_SCENARIO
#endif
FIRE                 /* fire disturbance enabled */
#ifdef RIVER_ROUTING
DRAINAGE
#else
NO_DRAINAGE
#endif
#ifdef WITH_LANDUSE
#if WITH_LANDUSE == CONST
CONST_LANDUSE                  /* constant land use */
#elif WITH_LANDUSE == NEW
NEW_LANDUSE                    /* new land use */
#else 
LANDUSE                        /* land use enabled */
#endif
POT_IRRIGATION /* NO_IRRIGATION, LIM_IRRIGATION, POT_IRRIGATION, 
                  ALL_IRRIGATION */
#ifdef WITH_LAIMAX_CFT
LAIMAX_CFT /* laimax values from manage parameter file */
#else
LAIMAX_INTERPOLATE
#endif
#else
NO_LANDUSE
#endif
#ifdef WITH_WATERUSE
WATERUSE
#else
NO_WATERUSE
#endif

/*===================================================================*/
/*  II. Input parameter section                                      */
/*===================================================================*/

#include "param.conf"         /* Input  Parameter file */

/*===================================================================*/
/*  III. Input data section                                          */
/*===================================================================*/

#include "input.conf"    /* Input files of CRU dataset */

#ifdef WITH_WATERUSE
input/wateruse1901_2003.bin /* water consumption for industry, household and livestock */
#endif

/*===================================================================*/
/*  IV. Output data section                                          */
/*===================================================================*/

#ifdef WITH_GRIDBASED
GRIDBASED
#define SUFFIX grid.bin
#else
PFTBASED
#define SUFFIX pft.bin
#endif

#ifndef FROM_RESTART

END	            /* no output files */

#else

/*
ID                  filename
------------------- ----------------------------- */
GRID                output/grid.bin
FPC                 output/fpc.bin 
MNPP                output/mnpp.bin
MGPP                output/mgpp.bin
MRH                 output/mrh.bin
MTRANSP             output/mtransp.bin
MRUNOFF             output/mrunoff.bin
MDISCHARGE          output/mdischarge.bin
MEVAP               output/mevap.bin
MINTERC             output/minterc.bin
MSWC1               output/mswc1.bin
MSWC2               output/mswc2.bin
MIRRIG              output/mirrig.bin
FIREC               output/firec.bin
FIREF               output/firef.bin
VEGC                output/vegc.bin
SOILC               output/soilc.bin
LITC                output/litc.bin
PFT_GCGP            output/waterstress.bin 
PFT_NPP             output/pft_npp.SUFFIX
#ifdef WITH_LANDUSE
FLUX_ESTAB          output/flux_estab.bin
HARVEST             output/flux_harvest.bin
SDATE               output/sdate.bin
PFT_HARVEST         output/pft_harvest.SUFFIX
PFT_RHARVEST        output/pft_rharvest.SUFFIX
CFTFRAC             output/cftfrac.bin 
CFT_CONSUMP_WATER_G output/cft_consump_water_g.bin 
CFT_CONSUMP_WATER_B output/cft_consump_water_b.bin 
MRETURN_FLOW_B      output/mreturn_flow_b.bin
#endif
APREC               output/aprec.bin
#ifdef RIVER_ROUTING
INPUT_LAKE          output/input_lake.bin
MEVAP_LAKE          output/mevap_lake.bin
ADISCHARGE          output/adischarge.bin
#endif
#ifdef DAILY_OUTPUT
D_LAI               output/d_lai.bin
D_PHEN              output/d_phen.bin
D_CLEAF             output/d_cleaf.bin
D_CROOT             output/d_croot.bin
D_CSO               output/d_cso.bin
D_CPOOL             output/d_cpool.bin
D_WDF               output/d_wdf.bin
D_GROWINGDAY        output/d_growingday.bin
D_PVD               output/d_pvd.bin
D_PHU               output/d_phu.bin
D_FPHU              output/d_fphu.bin
D_LAIMAXAD          output/d_laimax_adjusted.bin
D_LAINPPDEF         output/d_laimaxnppdeficit.bin
D_HUSUM             output/d_husum.bin
D_VDSUM             output/d_vdsum.bin
D_WSCAL             output/d_wscal.bin
D_NPP               output/d_npp.bin
D_GPP               output/d_gpp.bin
D_RD                output/d_rd.bin
D_RROOT             output/d_rroot.bin
D_RSO               output/d_rso.bin
D_RPOOL             output/d_rpool.bin
D_GRESP             output/d_gresp.bin
D_TRANS             output/d_trans.bin
D_EVAP              output/d_evap.bin
D_PREC              output/d_prec.bin
D_PERC              output/d_perc.bin
D_IRRIG             output/d_irrig.bin
D_W0                output/d_w0.bin
D_W1                output/d_w1.bin
D_WEVAP             output/d_wevap.bin
D_HI                output/d_hi.bin
D_FHIOPT            output/d_fhiopt.bin
D_HIMIND            output/d_himind.bin
D_FROOT             output/d_froot.bin
D_TEMP              output/d_temp.bin
D_SUN               output/d_sun.bin
D_PAR               output/d_par.bin
D_DAYLENGTH         output/d_daylength.bin
D_PET               output/d_pet.bin
#endif                                             /*
------------------- ------------------------------- */
END
#ifdef DAILY_OUTPUT
TEMPERATE_CEREALS  /* CFT for daily output */
DAILY_RAINFED      /* irrigation flag for daily output */
#endif
#endif

/*===================================================================*/
/*  V. Run settings section                                          */
/*===================================================================*/

ALL    /* all grid cells */

#ifndef FROM_RESTART

1000  /* spinup years */
/* exclude next line in case of 0 spinup years */
30   /* cycle length during spinup (yr) */
1901 /* first year of simulation */
1901 /* last year of simulation */
NO_RESTART /* do not start from restart file */
RESTART /* create restart file: the last year of simulation=restart-year */
restart/restart.lpj /* filename of restart file */
1900 /* write restart at year; exclude line in case of no restart to be written */

#else

0    /* no spinup years */
/* exclude next line in case of 0 spinup years */
/*30    cycle length during spinup (yr) */
1901 /* first year of simulation */
2003 /* last year of simulation */
RESTART /* start from restart file */
restart/restart.lpj /* filename of restart file */
RESTART /* create restart file */
restart/restart_final.lpj /* filename of restart file */
2000 /* write restart at year; exclude line in case of no restart to be written */

#endif