From cb7b41c87ef5798867ce93d3d0e66d90bc25d395 Mon Sep 17 00:00:00 2001 From: Paul Heinrich Date: Thu, 11 Apr 2024 11:26:13 +0200 Subject: [PATCH 1/2] set default value of contiguous to false --- src/simulation/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simulation/config.rs b/src/simulation/config.rs index 3cca418..6eb93e4 100644 --- a/src/simulation/config.rs +++ b/src/simulation/config.rs @@ -268,7 +268,7 @@ pub struct MetisOptions { pub imbalance_factor: f32, #[serde(default = "u32_value_100")] pub iteration_number: u32, - #[serde(default = "bool_value_true")] + #[serde(default = "bool_value_false")] pub contiguous: bool, } @@ -345,8 +345,8 @@ fn u32_value_100() -> u32 { 100 } -fn bool_value_true() -> bool { - true +fn bool_value_false() -> bool { + false } fn default_vertex_weight() -> Vec { From 1186d1a23cb1298b33e283e50adcb2a97c5dfb67 Mon Sep 17 00:00:00 2001 From: Paul Heinrich Date: Thu, 11 Apr 2024 11:34:53 +0200 Subject: [PATCH 2/2] fix test --- src/simulation/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/config.rs b/src/simulation/config.rs index 6eb93e4..b2cef64 100644 --- a/src/simulation/config.rs +++ b/src/simulation/config.rs @@ -439,7 +439,7 @@ mod tests { edge_weight: EdgeWeight::Capacity, imbalance_factor: 1.1, iteration_number: 100, - contiguous: true, + contiguous: false, }) ); }