コード例 #1
0
ファイル: GerminatingPhase.cs プロジェクト: helend3456/ApsimX
        /// <summary>
        /// Do our timestep development
        /// </summary>
        public override double DoTimeStep(double PropOfDayToUse)
        {
            bool CanGerminate = !Phenology.OnDayOf("Sowing") && Soil.SoilWater.ESW > 0;

            if (CanGerminate)
            {
                return(0.999);
            }
            else
            {
                return(0);
            }
        }
コード例 #2
0
        /// <summary>
        /// Do our timestep development
        /// </summary>
        public override double DoTimeStep(double PropOfDayToUse)
        {
            bool CanGerminate = true;

            if (Soil != null)
            {
                CanGerminate = !Phenology.OnDayOf("Sowing") && Soil.Water[SowLayer] > Soil.SoilWater.LL15mm[SowLayer];
            }

            if (CanGerminate)
            {
                return(0.999);
            }
            else
            {
                return(0);
            }
        }
コード例 #3
0
ファイル: GerminatingPhase.cs プロジェクト: oseledets/ApsimX
        /// <summary>
        /// Do our timestep development
        /// </summary>
        public override double DoTimeStep(double PropOfDayToUse)
        {
            bool CanGerminate = true;

            if (Soil != null)
            {
                CanGerminate = !Phenology.OnDayOf("Sowing") && Soil.Water[SowLayer] > Soil.SoilWater.LL15mm[SowLayer];
            }

            if (DaysFromSowingToEndPhase > 0)
            {
                if (phenology.DaysAfterSowing >= DaysFromSowingToEndPhase)
                {
                    return(0.999);
                }
            }
            else if (CanGerminate)
            {
                return(0.999);
            }

            return(0);
        }