Index: src/Deltares.DSoilModel.Data/DSoilModelProject.cs =================================================================== diff -u -r793 -r796 --- src/Deltares.DSoilModel.Data/DSoilModelProject.cs (.../DSoilModelProject.cs) (revision 793) +++ src/Deltares.DSoilModel.Data/DSoilModelProject.cs (.../DSoilModelProject.cs) (revision 796) @@ -783,6 +783,26 @@ return results.ToArray(); } + [Validate] + public ValidationResult[] ValidatePreConsolidations() + { + var results = new List(); + + foreach (var soilProfile2D in soilProfiles2D) + { + SoilProfile2D thisSoilProfile2D = soilProfile2D; + foreach (var preconsolidationStress in thisSoilProfile2D.PreconsolidationStresses) + { + if (double.IsNaN(preconsolidationStress.StressValue)) + { + string messageForProfile = String.Format(this.Translate("PreconsolidationStressIsNan"), preconsolidationStress.X, preconsolidationStress.Y); + results.Add(new ValidationResult(ValidationResultType.Warning, messageForProfile, thisSoilProfile2D)); + } + } + } + return results.ToArray(); + } + /// /// Add soil data to the project, resolving duplicate names /// @@ -1301,7 +1321,7 @@ } for (int i = selectedSegment.Cpts.Count - 1; i >= 0; i--) { - if (Math.Abs(selectedSegment.Cpts[i].Xlocal - (noPoint)) < double.Epsilon) + if (Math.Abs(selectedSegment.Cpts[i].Xlocal - (noPoint)) < GeometryConstants.Accuracy) { selectedSegment.Cpts.Remove(selectedSegment.Cpts[i]); } @@ -1325,7 +1345,7 @@ } for (int i = selectedSegment.Borings.Count - 1; i >= 0; i--) { - if (Math.Abs(selectedSegment.Borings[i].Xlocal - (noPoint)) < double.Epsilon) + if (Math.Abs(selectedSegment.Borings[i].Xlocal - (noPoint)) < GeometryConstants.Accuracy) { selectedSegment.Borings.Remove(selectedSegment.Borings[i]); } Index: src/Deltares.DSoilModel.Data/Translations.xml =================================================================== diff -u -r793 -r796 --- src/Deltares.DSoilModel.Data/Translations.xml (.../Translations.xml) (revision 793) +++ src/Deltares.DSoilModel.Data/Translations.xml (.../Translations.xml) (revision 796) @@ -76,4 +76,5 @@ +