Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 82f483d

Browse files
committed
fix compile error
1 parent 182e09b commit 82f483d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ipc/smooth_contact/primitives/point3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Vector<double, -1, Point3::max_size + Point3::dim> Point3::grad(
9292
const Eigen::Matrix<double, -1, dim> X =
9393
slice_positions<double, -1, dim>(x);
9494
const auto [val, grad] = smooth_point3_term_gradient(
95-
d, X.row(0), X.bottomRows(n_neighbors), _param);
95+
d, X, _param);
9696
return grad;
9797
#endif
9898
}
@@ -115,7 +115,7 @@ Point3::hessian(
115115
#else
116116
const auto X = slice_positions<double, -1, dim>(x);
117117
const auto [val, grad, hess] = smooth_point3_term_hessian(
118-
d, X.row(0), X.bottomRows(n_neighbors), _param);
118+
d, X, _param);
119119
return hess;
120120
#endif
121121
}

tests/src/tests/barrier/test_barrier.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ TEST_CASE("point term derivatives", "[deriv]")
313313
}
314314

315315
{
316-
auto y = point_term->potential(vectors.row(0), fd::flatten(V));
317316
auto y_grad = point_term->grad(vectors.row(0), fd::flatten(V));
318317
auto y_hess = point_term->hessian(vectors.row(0), fd::flatten(V));
319318

0 commit comments

Comments
 (0)