Esempio n. 1
0
        public void CheckSoil(object sender, EventArgs e)
        {
            Soil currentSoil = Apsim.Get(this.explorerPresenter.ApsimXFile, this.explorerPresenter.CurrentNodePath) as Soil;

            if (currentSoil != null)
            {
                string errorMessages = SoilChecker.Check(currentSoil);
                if (!string.IsNullOrEmpty(errorMessages))
                {
                    explorerPresenter.MainPresenter.ShowError(errorMessages);
                }
                else
                {
                    explorerPresenter.MainPresenter.ShowMessage("Soil water parameters are valid.", Simulation.MessageType.Information);
                }
            }
        }
Esempio n. 2
0
        private void OnDoInitialSummary(object sender, EventArgs e)
        {
            if (CaptureSummaryText)
            {
                CreateInitialConditionsTable();
            }


            //Do checks on the soil to make sure there are no problems with the initial parameterisation.

            IEnumerable <Soil> soils = simulation.FindAllDescendants <Soil>();

            foreach (Soil soil in soils)
            {
                SoilChecker.Check(soil);
            }
        }
Esempio n. 3
0
        private void OnDoInitialSummary(object sender, EventArgs e)
        {
            if (CaptureSummaryText)
            {
                CreateInitialConditionsTable();
            }


            //Do checks on the soil to make sure there are no problems with the initial parameterisation.

            List <IModel> soils = Apsim.ChildrenRecursively(simulation, typeof(Soil));

            foreach (Soil soil in soils)
            {
                SoilChecker.Check(soil);
            }
        }
Esempio n. 4
0
        private void OnDoInitialSummary(object sender, EventArgs e)
        {
            if (CaptureSummaryText)
            {
                CreateInitialConditionsTable();
            }


            //Do checks on the soil to make sure there are no problems with the initial parameterisation.

            var soils = Apsim.ChildrenRecursively(simulation, typeof(Soils.Soil));

            foreach (Soils.Soil soil in soils)
            {
                string errorMessages = SoilChecker.Check(soil);
                if (!string.IsNullOrEmpty(errorMessages))
                {
                    WriteWarning(soil, errorMessages);
                }
            }
        }
Esempio n. 5
0
 private void OnDoInitialSummary(object sender, EventArgs e)
 {
     SoilChecker.Check(this);
 }