Skip to content

Commit

Permalink
Fix zero step periodic solve bug (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
SallySoul authored Feb 4, 2025
1 parent 5d019e6 commit 1206f94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fft_solver/find_periodic_solve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@ pub fn find_periodic_solve<const DIMENSION: usize>(
params.max_steps,
);

Some(PeriodicSolve { output_aabb, steps })
if steps == 0 {
None
} else {
Some(PeriodicSolve { output_aabb, steps })
}
}

0 comments on commit 1206f94

Please sign in to comment.