Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfileHelper.cs =================================================================== diff -u -r3893 -r4000 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfileHelper.cs (.../SoilProfileHelper.cs) (revision 3893) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfileHelper.cs (.../SoilProfileHelper.cs) (revision 4000) @@ -35,11 +35,11 @@ /// The dike embankment material. /// public static SoilProfile1D DetermineForSurfaceLineCorrected1DProfileAtX(SoilProfile1D originalSoilProfile1D, - SurfaceLine2 surfaceLine, double xCoordinate, Soil dikeEmbankmentMaterial) + SurfaceLine2 surfaceLine, double xCoordinate, Soil dikeEmbankmentMaterial) { var soilProfile = new SoilProfile1D(); soilProfile.Assign(originalSoilProfile1D); - var top = surfaceLine.Geometry.GetZatX(xCoordinate); + double top = surfaceLine.Geometry.GetZatX(xCoordinate); if (soilProfile.TopLevel < top) { var topLayer = new SoilLayer1D @@ -73,7 +73,7 @@ private static int RemoveLayersAboveTop(int layerCount, SoilProfile1D soilProfile, double top) { - var index = layerCount; + int index = layerCount; for (int i = layerCount - 1; i >= 0; i--) { if (soilProfile.Layers[i].TopLevel > top) @@ -89,4 +89,4 @@ return index; //soilProfile.Layers[0].TopLevel; } } -} +} \ No newline at end of file