Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit b05ec801 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Pull request #95: fix measured speed testcase

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:develop to develop

* commit '59988058':
  releasing new vecto build
  fix measured speed testcase
parents e7774254 59988058
Branches
Tags
No related merge requests found
No preview for this file type
No preview for this file type
...@@ -82,12 +82,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data ...@@ -82,12 +82,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
protected SquareMeter DeltaCdxA(double beta) protected SquareMeter DeltaCdxA(double beta)
{ {
var idx = FindIndex(beta); var (first, second) = FindIndex(beta);
return VectoMath.Interpolate(AirDragEntries[idx - 1].Beta, AirDragEntries[idx].Beta, AirDragEntries[idx - 1].DeltaCdA, return VectoMath.Interpolate(first.Beta, second.Beta, first.DeltaCdA,
AirDragEntries[idx].DeltaCdA, beta); second.DeltaCdA, beta);
} }
protected int FindIndex(double beta) protected (CrossWindCorrectionCurveReader.AirDragBetaEntry, CrossWindCorrectionCurveReader.AirDragBetaEntry) FindIndex(double beta)
{ {
if (beta < AirDragEntries.First().Beta) { if (beta < AirDragEntries.First().Beta) {
throw new VectoSimulationException("Beta / CdxA Lookup table does not cover beta={0}", beta); throw new VectoSimulationException("Beta / CdxA Lookup table does not cover beta={0}", beta);
...@@ -96,8 +96,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data ...@@ -96,8 +96,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
throw new VectoSimulationException("Beta / CdxA Lookup table does not cover beta={0}", beta); throw new VectoSimulationException("Beta / CdxA Lookup table does not cover beta={0}", beta);
} }
AirDragEntries.GetSection(x => x.Beta < beta, out var index); return AirDragEntries.GetSection(x => x.Beta < beta);
return index + 1;
} }
} }
} }
\ No newline at end of file
...@@ -6,6 +6,6 @@ int GetBuildNumber() ...@@ -6,6 +6,6 @@ int GetBuildNumber()
string GetVectoCoreVersionNumber() string GetVectoCoreVersionNumber()
{ {
return "0.7.5." + GetBuildNumber(); return "0.7.6." + GetBuildNumber();
} }
#> #>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment