From 0c5c3b82b080d25274e7c3cb4c539610c9118fd7 Mon Sep 17 00:00:00 2001 From: Masterchef365 Date: Mon, 10 Jun 2024 21:19:45 -0700 Subject: [PATCH] DT knob --- src/app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 19cd0c4..cc160e2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -121,8 +121,10 @@ impl eframe::App for DemoApp { ui.checkbox(&mut self.draw_grid, "Draw grid"); ui.checkbox(&mut self.draw_staggered, "Draw storage"); - ui.checkbox(&mut self.draw_centers, "Draw centers"); ui.add(DragValue::new(&mut self.draw_staggered_dim).clamp_range(0..=self.sim.dims())); + ui.checkbox(&mut self.draw_centers, "Draw centers"); + + ui.add(DragValue::new(&mut self.cfg.dt).prefix("dt: ").speed(1e-2).clamp_range(0.0..=10.0)); if resp_dims.changed() || resp_width.changed() || regen { *self = Self::from_dims(dims, width);