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

Commit 72bc9d2

Browse files
committed
fix compile error
1 parent ed0a19b commit 72bc9d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/src/tests/friction/friction_data_generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ SmoothFrictionData smooth_friction_data_generator_3d()
169169
barrier_stiffness = 1.; // 100;
170170
#endif
171171

172-
param = ParameterType(dhat, 0.8, 0, 1, 0, 2);
172+
param = ParameterType(dhat, 0.8, 0, 1, 0, 2, 1);
173173
const double max_d = dhat * 0.9;
174174
const double min_d = dhat * 0.1;
175175
const double d = GENERATE_COPY(range(min_d, max_d, max_d / 10));
@@ -332,7 +332,7 @@ SmoothFrictionData smooth_friction_data_generator_2d()
332332
barrier_stiffness = 1.; // 100;
333333
#endif
334334

335-
param = ParameterType(dhat, 0.8, 0, 1, 0, 2);
335+
param = ParameterType(dhat, 0.8, 0, 1, 0, 2, 1);
336336
const double max_d = dhat * 0.9;
337337
const double min_d = dhat * 0.1;
338338
const double d = GENERATE_COPY(range(min_d, max_d, max_d / 10));

tests/src/tests/potential/test_smooth_potential.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ TEST_CASE("Smooth barrier potential full gradient and hessian 3D", tagsopt)
173173
vertices = mesh.vertices(vertices);
174174
}
175175

176-
ParameterType param(dhat, 0.85, 0.5, 0.95, 0.6, 2);
176+
ParameterType param(dhat, 0.85, 0.5, 0.95, 0.6, 2, 1);
177177
param.set_adaptive_dhat_ratio(min_dist_ratio);
178178
collisions.compute_adaptive_dhat(mesh, vertices, param, method);
179179
collisions.build(mesh, vertices, param, adaptive_dhat, method);
@@ -257,7 +257,7 @@ TEST_CASE("Smooth barrier potential real sim 2D C^2", "[smooth_potential]")
257257
// std::cout << "\n" << vertices << "\n" << edges << "\n";
258258

259259
CollisionMesh mesh;
260-
ParameterType param(dhat, 0.9, -0.05, 0.95, 0.05, 1);
260+
ParameterType param(dhat, 0.9, -0.05, 0.95, 0.05, 1, 1);
261261
param.set_adaptive_dhat_ratio(min_dist_ratio);
262262
SmoothCollisions collisions;
263263
mesh = CollisionMesh(vertices, edges, faces);
@@ -345,7 +345,7 @@ TEST_CASE("Smooth barrier potential real sim 2D C^1", "[smooth_potential]")
345345
// std::cout << "\n" << vertices << "\n" << edges << "\n";
346346

347347
CollisionMesh mesh;
348-
ParameterType param(dhat, 0.9, -0.05, 0.95, 0.05, 1);
348+
ParameterType param(dhat, 0.9, -0.05, 0.95, 0.05, 1, 1);
349349
param.set_adaptive_dhat_ratio(min_dist_ratio);
350350
SmoothCollisions collisions;
351351
mesh = CollisionMesh(vertices, edges, faces);

0 commit comments

Comments
 (0)