Skip to content

Commit 8c62a45

Browse files
committed
Fix issue with y-derivatives in setupInterpolator method of BicubicInterpolator class
1 parent b619ab7 commit 8c62a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libInterpolate/Interpolators/_2D/BicubicInterpolator.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ void BicubicInterpolator<Real>::setupInterpolator() {
199199

200200
fp = (*Z)(i, jp);
201201
fm = (*Z)(i, jm);
202-
fy01 = (fp - fm) / dx; // <<<<<<
202+
fy01 = (fp - fm) / dy; // <<<<<<
203203

204204
fp = (*Z)(i + 1, jp);
205205
fm = (*Z)(i + 1, jm);
206-
fy11 = (fp - fm) / dx; // <<<<<<
206+
fy11 = (fp - fm) / dy; // <<<<<<
207207

208208
// xy derivatives
209209

0 commit comments

Comments
 (0)