Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

Commit 1df90a0f authored by Laurent Belcour's avatar Laurent Belcour

Some errors lefts

parent 50ca18cc
......@@ -27,7 +27,6 @@ int dD;
data_interpolant::data_interpolant()
{
_kdtree = new flann::Index< flann::L2<double> >(flann::KDTreeIndexParams(4));
_data = new vertical_segment();
_knn = 3;
......@@ -37,9 +36,11 @@ data_interpolant::~data_interpolant()
{
delete _data;
#ifndef USE_DELAUNAY
delete _kdtree;
if(_kdtree != NULL)
delete _kdtree;
#else
delete D;
if(D != NULL)
delete D;
#endif
}
......@@ -76,7 +77,8 @@ void data_interpolant::load(const std::string& filename)
vec x = _data->get(i);
memcpy(pts[i], &x[0], dimX()*sizeof(double));
}
_kdtree->buildIndex(pts);
_kdtree = new flann::Index< flann::L2<double> >(pts, flann::KDTreeIndexParams(4));
_kdtree->buildIndex();
#endif
}
void data_interpolant::load(const std::string& filename, const arguments&)
......
......@@ -50,15 +50,12 @@ class rational_function_legendre : public rational_function
rs[i] = new rational_function_legendre_1d(np, nq);
rs[i]->setDimX(dimX());
rs[i]->setDimY(dimY());
// Test if the input domain is not empty. If one dimension of
// the input domain is a point, I manually inflate this dimension
// to avoid numerical issues.
vec _min = min();
vec _max = max();
for(int k=0; k<dimX(); ++k)
{
if(_min[k] == _max[k])
if(_min[k] == _max[k])
{
_min[k] -= 1.0;
_max[k] += 1.0;
......
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