diff options
Diffstat (limited to 'src/dynamics/solver')
| -rw-r--r-- | src/dynamics/solver/island_solver.rs | 6 | ||||
| -rw-r--r-- | src/dynamics/solver/parallel_island_solver.rs | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/dynamics/solver/island_solver.rs b/src/dynamics/solver/island_solver.rs index 0c4c323..912fe1d 100644 --- a/src/dynamics/solver/island_solver.rs +++ b/src/dynamics/solver/island_solver.rs @@ -19,6 +19,12 @@ pub struct IslandSolver { position_solver: PositionSolver, } +impl Default for IslandSolver { + fn default() -> Self { + Self::new() + } +} + impl IslandSolver { pub fn new() -> Self { Self { diff --git a/src/dynamics/solver/parallel_island_solver.rs b/src/dynamics/solver/parallel_island_solver.rs index be7ea6d..bd6fc5d 100644 --- a/src/dynamics/solver/parallel_island_solver.rs +++ b/src/dynamics/solver/parallel_island_solver.rs @@ -133,6 +133,12 @@ pub struct ParallelIslandSolver { thread: ThreadContext, } +impl Default for ParallelIslandSolver { + fn default() -> Self { + Self::new() + } +} + impl ParallelIslandSolver { pub fn new() -> Self { Self { |
