/// <summary> /// Gets the surface. /// </summary> /// <param name="SoilObject">The soil object.</param> /// <param name="Clock">The clock.</param> /// <returns></returns> public Surface GetSurface(SoilWaterSoil SoilObject, IClock Clock) { Surface surface; if (SoilObject.max_pond <= 0.0) { surface = new NormalSurface(SoilObject, Clock); } else { surface = new PondSurface(SoilObject, Clock); } return(surface); }
/// <summary> /// Gets the surface. /// </summary> /// <param name="SoilObject">The soil object.</param> /// <param name="Clock">The clock.</param> /// <returns></returns> public Surface GetSurface(SoilWaterSoil SoilObject, Clock Clock) { Surface surface; if (SoilObject.max_pond <= 0.0) surface = new NormalSurface(SoilObject, Clock); else surface = new PondSurface(SoilObject, Clock); return surface; }