Code development platform for open source projects from the European Union institutions

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
No related branches found
No related tags found
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
protected SquareMeter DeltaCdxA(double beta)
{
var idx = FindIndex(beta);
return VectoMath.Interpolate(AirDragEntries[idx - 1].Beta, AirDragEntries[idx].Beta, AirDragEntries[idx - 1].DeltaCdA,
AirDragEntries[idx].DeltaCdA, beta);
var (first, second) = FindIndex(beta);
return VectoMath.Interpolate(first.Beta, second.Beta, first.DeltaCdA,
second.DeltaCdA, beta);
}
protected int FindIndex(double beta)
protected (CrossWindCorrectionCurveReader.AirDragBetaEntry, CrossWindCorrectionCurveReader.AirDragBetaEntry) FindIndex(double beta)
{
if (beta < AirDragEntries.First().Beta) {
throw new VectoSimulationException("Beta / CdxA Lookup table does not cover beta={0}", beta);
......@@ -96,8 +96,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
throw new VectoSimulationException("Beta / CdxA Lookup table does not cover beta={0}", beta);
}
AirDragEntries.GetSection(x => x.Beta < beta, out var index);
return index + 1;
return AirDragEntries.GetSection(x => x.Beta < beta);
}
}
}
\ No newline at end of file
......@@ -6,6 +6,6 @@ int GetBuildNumber()
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.
Finish editing this message first!
Please register or to comment