private void OnDoSurfaceOrganicMatterDecomposition(object sender, EventArgs args) { actualSOMDecomp = SoilNitrogen.CalculateActualSOMDecomp(); if (actualSOMDecomp != null) { DecomposeSurfom(actualSOMDecomp); } }
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); } } }