//--------------------------------------------------------------------- public override void LoadParameters(string dataFile, ICore mCore) { modelCore = mCore; SiteVars.Initialize(); InputParametersParser parser = new InputParametersParser(); parameters = Landis.Data.Load <IInputParameters>(dataFile, parser); }
//--------------------------------------------------------------------- /// <summary> /// Grows all cohorts at a site for a specified number of years. The /// dead pools at the site also decompose for the given time period. /// </summary> public static void GrowCohorts( ActiveSite site, int years, bool isSuccessionTimestep) { //PlugIn.ModelCore.Log.WriteLine("years = {0}, successionTS = {1}.", years, successionTimestep.Value); for (int y = 1; y <= years; ++y) { if (PlugIn.ModelCore.CurrentTime > 0) { SpeciesData.ChangeDynamicParameters(PlugIn.ModelCore.CurrentTime + y - 1); } SiteVars.ResetAnnualValues(site); CohortBiomass.SubYear = y - 1; SiteVars.Cohorts[site].Grow(site, (y == years && isSuccessionTimestep)); SiteVars.WoodyDebris[site].Decompose(); SiteVars.Litter[site].Decompose(); } }