//---------------------------------------------------------------------

        protected override void InitializeSite(ActiveSite site,
                                               ICommunity initialCommunity)
        {
            InitialBiomass initialBiomass = InitialBiomass.Compute(site, initialCommunity);

            SiteVars.MineralN[site] = Parameters.InitialMineralN;
        }
Example #2
0
        //---------------------------------------------------------------------

        protected override void InitializeSite(ActiveSite site,
                                               ICommunity initialCommunity)
        {
            int swhc = (int)((SiteVars.SoilFieldCapacity[site] - SiteVars.SoilWiltingPoint[site]) * SiteVars.SoilDepth[site]);

            if (!PlugIn.SWHC_List.Contains(swhc))
            {
                PlugIn.SWHC_List.Add(swhc);
            }
            //PlugIn.ModelCore.UI.WriteLine("SWHC = {0}", swhc);

            InitialBiomass initialBiomass = InitialBiomass.Compute(site, initialCommunity);

            SiteVars.MineralN[site] = parameters.InitialMineralN;
        }