/// <summary> /// This methods ensure that the time arrays in all <see cref="IndividualResults" /> are using the reference defined in /// the parent <see cref="SimulationResults" />. /// Also results will be reorderd by Individual Id /// </summary> public void SynchronizeResults() { if (!Results.Any()) { return; } //Retrieve time array from the first individual that will be used as reference var firstTime = Results.ElementAt(0).Time; Results.Time = firstTime; foreach (var individualResults in Results) { if (individualResults.Time.Values.IsEqual(firstTime.Values)) { individualResults.Time = firstTime; } individualResults.UpdateQuantityTimeReference(); } Results.ReorderByIndividualId(); }