Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs =================================================================== diff -u -r3522 -r3851 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 3522) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 3851) @@ -138,13 +138,16 @@ }; var plLines = plLinesCreator.CreateAllPlLines(location); - upliftSituation.Pl3HeadAdjusted = plLinesCreator.Pl3HeadAdjusted; - upliftSituation.Pl3LocationXMinUplift = plLinesCreator.Pl3LocationXMinUplift; - upliftSituation.Pl3MinUplift = plLinesCreator.Pl3MinUplift; - upliftSituation.Pl4HeadAdjusted = plLinesCreator.Pl4HeadAdjusted; - upliftSituation.Pl4LocationXMinUplift = plLinesCreator.Pl4LocationXMinUplift; - upliftSituation.Pl4MinUplift = plLinesCreator.Pl4MinUplift; - upliftSituation.IsUplift = false; // must be determined later on; just to avoid compiler error + upliftSituation = new UpliftSituation + { + Pl3HeadAdjusted = plLinesCreator.Pl3HeadAdjusted, + Pl3LocationXMinUplift = plLinesCreator.Pl3LocationXMinUplift, + Pl3MinUplift = plLinesCreator.Pl3MinUplift, + Pl4HeadAdjusted = plLinesCreator.Pl4HeadAdjusted, + Pl4LocationXMinUplift = plLinesCreator.Pl4LocationXMinUplift, + Pl4MinUplift = plLinesCreator.Pl4MinUplift, + IsUplift = false // must be determined later on; just to avoid compiler error + }; return plLines; } @@ -189,13 +192,17 @@ { plLines = plLinesCreator.CreateAllPlLines(location); } - upliftSituation.Pl3HeadAdjusted = plLinesCreator.Pl3HeadAdjusted; - upliftSituation.Pl3LocationXMinUplift = plLinesCreator.Pl3LocationXMinUplift; - upliftSituation.Pl3MinUplift = plLinesCreator.Pl3MinUplift; - upliftSituation.Pl4HeadAdjusted = plLinesCreator.Pl4HeadAdjusted; - upliftSituation.Pl4LocationXMinUplift = plLinesCreator.Pl4LocationXMinUplift; - upliftSituation.Pl4MinUplift = plLinesCreator.Pl4MinUplift; - upliftSituation.IsUplift = false; // must be determined later on; just to avoid compiler error + + upliftSituation = new UpliftSituation + { + Pl3HeadAdjusted = plLinesCreator.Pl3HeadAdjusted, + Pl3LocationXMinUplift = plLinesCreator.Pl3LocationXMinUplift, + Pl3MinUplift = plLinesCreator.Pl3MinUplift, + Pl4HeadAdjusted = plLinesCreator.Pl4HeadAdjusted, + Pl4LocationXMinUplift = plLinesCreator.Pl4LocationXMinUplift, + Pl4MinUplift = plLinesCreator.Pl4MinUplift, + IsUplift = false // must be determined later on; just to avoid compiler error + }; return plLines; }