/* bgc_io.h header file to hold the structures used to communicate with bgc() also contains the function prototype for bgc() *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Biome-BGC version 4.1.2 Copyright 2002, Peter E. Thornton *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* */ /* structure for passing input parameters to bgc() */ typedef struct { restart_data_struct restart_input; /* input restart data */ control_struct ctrl; /* bgc control variables */ ramp_ndep_struct ramp_ndep; /* ramped Ndep information */ co2control_struct co2; /* CO2 concentration information */ metarr_struct metarr; /* meteorological data array */ wstate_struct ws; /* water state variables */ cinit_struct cinit; /* first-year values for leafc and stemc */ cstate_struct cs; /* carbon state variables */ nstate_struct ns; /* nitrogen state variables */ siteconst_struct sitec; /* site constants */ epconst_struct epc; /* ecophysiological constants */ } bgcin_struct; /* structure for output handling from bgc() */ typedef struct { restart_data_struct restart_output; /* output restart data */ file dayout; /* file containing daily output */ file monavgout; /* file containing monthly average output */ file annavgout; /* file containing annual average output */ file annout; /* file containing annual output */ file anntext; /* file containing simple annual text output */ double spinup_resid_trend; /* kgC/m2/yr remaining trend after spinup */ int spinup_years; /* number of years before reaching steady-state */ } bgcout_struct; /* function prototypes for calling bgc */ int bgc(bgcin_struct* bgcin, bgcout_struct* bgcout); int spinup_bgc(bgcin_struct* bgcin, bgcout_struct* bgcout);