Skip to content

Commit

Permalink
Fixed bug in vector version of interpolate
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Jun 1, 2023
1 parent bc6d271 commit 2d55519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d55519

Please sign in to comment.