/// <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); } }
/// <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); } }
/// <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); }