Skip to content

Commit 3e0cda0

Browse files
authored
Merge pull request #129 from matsim-vsp/metis-contiguous-fix
set default value of contiguous to false
2 parents 5c85c39 + 1186d1a commit 3e0cda0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/simulation/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ pub struct MetisOptions {
268268
pub imbalance_factor: f32,
269269
#[serde(default = "u32_value_100")]
270270
pub iteration_number: u32,
271-
#[serde(default = "bool_value_true")]
271+
#[serde(default = "bool_value_false")]
272272
pub contiguous: bool,
273273
}
274274

@@ -345,8 +345,8 @@ fn u32_value_100() -> u32 {
345345
100
346346
}
347347

348-
fn bool_value_true() -> bool {
349-
true
348+
fn bool_value_false() -> bool {
349+
false
350350
}
351351

352352
fn default_vertex_weight() -> Vec<VertexWeight> {
@@ -439,7 +439,7 @@ mod tests {
439439
edge_weight: EdgeWeight::Capacity,
440440
imbalance_factor: 1.1,
441441
iteration_number: 100,
442-
contiguous: true,
442+
contiguous: false,
443443
})
444444
);
445445
}

0 commit comments

Comments
 (0)