Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 847cf2b9 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

RetarderLossMap: Change Argument from List to Array

parent 6a90d296
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData
.Select(row => new RetarderLossMap.RetarderLossEntry {
RetarderSpeed = row.ParseDouble(Fields.RetarderSpeed).RPMtoRad(),
TorqueLoss = row.ParseDouble(Fields.TorqueLoss).SI<NewtonMeter>()
}).OrderBy(e => e.RetarderSpeed));
}).OrderBy(e => e.RetarderSpeed).ToArray());
}
public static class Fields
......
......@@ -29,7 +29,6 @@
* Martin Rexeis, rexeis@ivt.tugraz.at, IVT, Graz University of Technology
*/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using TUGraz.VectoCommon.Utils;
......@@ -45,9 +44,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
private PerSecond _minSpeed;
private PerSecond _maxSpeed;
protected internal RetarderLossMap(IEnumerable<RetarderLossEntry> entries)
protected internal RetarderLossMap(RetarderLossEntry[] entries)
{
_entries = entries.ToArray();
_entries = entries;
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment