Пример #1
0
        /// <summary>Does the n retranslocate.</summary>
        /// <param name="GrainNDemand">The grain n demand.</param>
        /// <param name="Tops">The tops.</param>
        internal void DoNRetranslocate(double GrainNDemand, List <Organ1> Tops)
        {
            // Calculate the nitrogen retranslocation from the various plant parts
            // to the grain.

            //! available N does not include roots or grain
            //! this should not presume roots and grain are 0.
            // grain N potential (supply)

            double availableRetranslocateN = 0;

            foreach (Organ1 Organ in Tops)
            {
                availableRetranslocateN += Organ.AvailableRetranslocateN;
            }

            foreach (Organ1 Organ in Tops)
            {
                Organ.DoNRetranslocate(availableRetranslocateN, GrainNDemand);     //FIXME - divy up?
            }
        }