style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -186,7 +186,10 @@ impl PartitioningStats {
|
||||
}
|
||||
let total_nodes = all_nodes.len();
|
||||
|
||||
let element_counts: Vec<usize> = partitions.iter().map(MeshPartition::element_count).collect();
|
||||
let element_counts: Vec<usize> = partitions
|
||||
.iter()
|
||||
.map(MeshPartition::element_count)
|
||||
.collect();
|
||||
let max_elements = element_counts.iter().max().copied().unwrap_or(0);
|
||||
let min_elements = element_counts.iter().min().copied().unwrap_or(0);
|
||||
let avg_elements = if num_partitions > 0 {
|
||||
@@ -203,7 +206,10 @@ impl PartitioningStats {
|
||||
};
|
||||
|
||||
// Count total interface nodes
|
||||
let total_interface_nodes: usize = partitions.iter().map(MeshPartition::boundary_node_count).sum();
|
||||
let total_interface_nodes: usize = partitions
|
||||
.iter()
|
||||
.map(MeshPartition::boundary_node_count)
|
||||
.sum();
|
||||
|
||||
// Estimate communication volume
|
||||
let communication_volume: usize = partitions
|
||||
|
||||
Reference in New Issue
Block a user