disable assert

this triggers while running a thermal deck (SPE1CASE2_THERMAL),
but there is no apparent reason why it is an error.
This commit is contained in:
Arne Morten Kvarving 2020-01-28 14:06:40 +01:00
parent 370923a186
commit 8909d471e8

View File

@ -129,16 +129,17 @@ public:
bool sortInputs = true)
{
assert(x.size() == y.size());
assert(x.size() > 1);
resizeArrays_(x.size());
std::copy(x.begin(), x.end(), xValues_.begin());
std::copy(y.begin(), y.end(), yValues_.begin());
if (x.size() > 0) {
std::copy(x.begin(), x.end(), xValues_.begin());
std::copy(y.begin(), y.end(), yValues_.begin());
if (sortInputs)
sortInput_();
else if (xValues_[0] > xValues_[numSamples() - 1])
reverseSamplingPoints_();
if (sortInputs)
sortInput_();
else if (xValues_[0] > xValues_[numSamples() - 1])
reverseSamplingPoints_();
}
}
/*!