Skip to content

Commit

Permalink
Merge pull request #129 from matsim-vsp/metis-contiguous-fix
Browse files Browse the repository at this point in the history
set default value of contiguous to false
  • Loading branch information
paulheinr authored Apr 11, 2024
2 parents 5c85c39 + 1186d1a commit 3e0cda0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/simulation/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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<VertexWeight> {
Expand Down Expand Up @@ -439,7 +439,7 @@ mod tests {
edge_weight: EdgeWeight::Capacity,
imbalance_factor: 1.1,
iteration_number: 100,
contiguous: true,
contiguous: false,
})
);
}
Expand Down

0 comments on commit 3e0cda0

Please sign in to comment.