Skip to content

Commit a8b7240

Browse files
committed
Fix pysplashsurf
1 parent 08b7faa commit a8b7240

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pysplashsurf/src/reconstruction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ pub fn reconstruct_surface_py<I: Index, R: Real>(
107107
let params = splashsurf_lib::Parameters {
108108
particle_radius,
109109
rest_density,
110-
compact_support_radius: (smoothing_length * particle_radius).times_f64(2.0),
110+
// Compact support is twice the smoothing length
111+
compact_support_radius: (smoothing_length * particle_radius) * R::from_float(2.0),
111112
cube_size: cube_size * particle_radius,
112113
iso_surface_threshold,
113114
particle_aabb: aabb,

0 commit comments

Comments
 (0)