Skip to content

Commit

Permalink
Allocate more space for laplacian in spline test.
Browse files Browse the repository at this point in the history
The laplacian is stored as x, y, and z components during the spline evaluation and
summed into the x component at the end.    Need to allocate more space for it in the unit test.

Fixes QMCPACK#941
  • Loading branch information
markdewing committed Jul 31, 2018
1 parent 86b3d08 commit 39dd3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spline2/tests/gen_bspline_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def evaluate_spline_3D():

print
print
print ' Array<T, 1> lap(1);'
print ' Array<T, 2> lap(1,3);'
print ' bs.evaluate_vgl(pos, v, dv, lap);'

lap = diff(e,xs,2) + diff(e,ys,2) + diff(e,zs,2)
Expand Down
2 changes: 1 addition & 1 deletion src/spline2/tests/test_multi_spline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void test_splines()
REQUIRE(hess(0, 5) == Approx( 34.53786329));


Array<T, 1> lap(1);
Array<T, 2> lap(1,3);
bs.evaluate_vgl(pos, v, dv, lap);
// Value
REQUIRE(v(0) == Approx( -0.9476393279));
Expand Down

0 comments on commit 39dd3cb

Please sign in to comment.