コード例 #1
0
 private void OnDoSurfaceOrganicMatterDecomposition(object sender, EventArgs args)
 {
     actualSOMDecomp = SoilNitrogen.CalculateActualSOMDecomp();
     if (actualSOMDecomp != null)
     {
         DecomposeSurfom(actualSOMDecomp);
     }
 }
コード例 #2
0
        private void OnDoSurfaceOrganicMatterDecomposition(object sender, EventArgs args)
        {
            actualSOMDecomp = SoilNitrogen.CalculateActualSOMDecomp();
            if (actualSOMDecomp != null)
            {
                DecomposeSurfom(actualSOMDecomp);
            }

            Canopies = new List <ICanopy>();
            foreach (SurfOrganicMatterType pool in SurfOM)
            {
                if (pool.CanopyLying.CoverTotal > 0)
                {
                    Canopies.Add(pool.CanopyLying);
                }
                if (pool.CanopyStanding.CoverTotal > 0)
                {
                    Canopies.Add(pool.CanopyStanding);
                }
            }
        }