//--------------------------------------------------------------------- private void InitializeAgeCohorts() { abiebalsAges = new List <ushort>(new ushort[] { 30, 40, 50, 150, 170 }); betualleAges = new List <ushort>(new ushort[] { 100, 120, 280, 290 }); // Work with ages from oldest to youngest abiebalsAges.Sort(Landis.AgeCohort.Util.WhichIsOlder); betualleAges.Sort(Landis.AgeCohort.Util.WhichIsOlder); List <AgeCohort.ISpeciesCohorts> speciesCohortList = new List <AgeCohort.ISpeciesCohorts>(); speciesCohortList.Add(new AgeCohort.SpeciesCohorts(abiebals, abiebalsAges)); speciesCohortList.Add(new AgeCohort.SpeciesCohorts(betualle, betualleAges)); AgeCohort.SiteCohorts siteCohorts = new AgeCohort.SiteCohorts(speciesCohortList); ageCohorts = InitialBiomass.SortCohorts(siteCohorts); }
//--------------------------------------------------------------------- private void InitializeAgeCohorts() { abiebalsAges = new List<ushort>(new ushort[]{30, 40, 50, 150, 170}); betualleAges = new List<ushort>(new ushort[]{100, 120, 280, 290}); // Work with ages from oldest to youngest abiebalsAges.Sort(Landis.AgeCohort.Util.WhichIsOlder); betualleAges.Sort(Landis.AgeCohort.Util.WhichIsOlder); List<AgeCohort.ISpeciesCohorts> speciesCohortList = new List<AgeCohort.ISpeciesCohorts>(); speciesCohortList.Add(new AgeCohort.SpeciesCohorts(abiebals, abiebalsAges)); speciesCohortList.Add(new AgeCohort.SpeciesCohorts(betualle, betualleAges)); AgeCohort.SiteCohorts siteCohorts = new AgeCohort.SiteCohorts(speciesCohortList); ageCohorts = InitialBiomass.SortCohorts(siteCohorts); }