Index: dam engine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile1DAquiferLayerCombiner.cs =================================================================== diff -u -r677 -r806 --- dam engine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile1DAquiferLayerCombiner.cs (.../SoilProfile1DAquiferLayerCombiner.cs) (revision 677) +++ dam engine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile1DAquiferLayerCombiner.cs (.../SoilProfile1DAquiferLayerCombiner.cs) (revision 806) @@ -25,9 +25,10 @@ double num1 = 0.0; double diameterD70 = layerWithName.Soil.DiameterD70; double num2 = 0.0; - int layerIndexAt = soilProfile1D.GetLayerIndexAt(layerWithName); + + int startLayerIndex = soilProfile1D.GetLayerIndexAt(layerWithName); WaterpressureInterpolationModel interpolationModel = layerWithName.WaterpressureInterpolationModel; - for (; layerIndexAt < soilProfile1D.LayerCount && soilProfile1D.Layers[layerIndexAt].IsAquifer; ++layerIndexAt) + for (int layerIndexAt = startLayerIndex; layerIndexAt < soilProfile1D.LayerCount && soilProfile1D.Layers[layerIndexAt].IsAquifer; ++layerIndexAt) { if (interpolationModel != soilProfile1D.Layers[layerIndexAt].WaterpressureInterpolationModel) {