Skip to content

Commit

Permalink
Complete task 2/3 of #4
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoireHENRY committed Apr 19, 2024
1 parent 2575005 commit 9733c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ impl Config {
config.scene.camera.far = Some(far);
}

// Restart parameters to be applied at the end.
if let Some(duration_more) = restart.duration_more {
config.simulation.duration += duration_more;
}

config.restart = Some(restart);
config.preferences = new.preferences.clone();

Expand Down
1 change: 1 addition & 0 deletions src/config/restart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::path::PathBuf;
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
pub struct Restart {
pub path: Option<PathBuf>,
pub duration_more: Option<usize>,
pub time_step_factor: Option<Float>,
pub time_step_export_factor: Option<Float>,
pub depth_step_factor: Option<Float>,
Expand Down

0 comments on commit 9733c89

Please sign in to comment.