Commit 943e3531 authored by Purves, Murray's avatar Purves, Murray
Browse files

Added extra pressure level

parent e68944b8
Pipeline #28277 failed with stages
in 2 minutes and 40 seconds
......@@ -379,11 +379,18 @@ int main(int argc, char **argv)
*std::min_element(std::begin(inputPressures), std::end(inputPressures));
// Calculate the resampled pressure values using the interval given
std::cout << " Calculating resampled pressure values..." << std::endl;
for (float thisPressure = resampleStart; thisPressure > minPressure;
float thisPressure;
for (thisPressure = resampleStart; thisPressure > minPressure;
thisPressure -= resampleInterval)
{
resampledPressures.push_back(thisPressure);
}
// Add another entry below the min. pressure
// - but only if that pressure won't be 0
if (thisPressure > 0)
{
resampledPressures.push_back(thisPressure);
}
std::cout << " Temperature:" << std::endl;
inputTemps = interpolateToOtherBaseValues(inputPressures,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment