Skip to content

Commit

Permalink
DT knob
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterchef365 committed Jun 11, 2024
1 parent 561e284 commit 0c5c3b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c5c3b8

Please sign in to comment.