From 2d5551996e56574e022403f8f5bc294eeb36e81c Mon Sep 17 00:00:00 2001 From: Thomas Nipen Date: Thu, 1 Jun 2023 16:25:23 +0200 Subject: [PATCH] Fixed bug in vector version of interpolate --- src/api/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/util.cpp b/src/api/util.cpp index 93cb83a3..81e97aca 100644 --- a/src/api/util.cpp +++ b/src/api/util.cpp @@ -390,7 +390,7 @@ vec gridpp::interpolate(const vec& x, const vec& iX, const vec& iY) { vec y(x.size()); #pragma omp parallel for - for(int i; i < x.size(); i++) { + for(int i = 0; i < x.size(); i++) { y[i] = interpolate(x[i], iX, iY); } return y;