Skip to content

Commit 733fdf5

Browse files
committed
cargo fmt
1 parent 3f5d27d commit 733fdf5

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

splashsurf_lib/src/dense_subdomains.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ pub(crate) fn initialize_parameters<'a, I: Index, R: Real>(
8989
) -> Result<ParametersSubdomainGrid<I, R>, anyhow::Error> {
9090
let chunk_size = 500;
9191

92-
let Some(SpatialDecomposition::UniformGrid(grid_parameters)) = &parameters.spatial_decomposition else {
93-
return Err(anyhow!("spatial decomposition parameters for uniform grid are missing"))
92+
let Some(SpatialDecomposition::UniformGrid(grid_parameters)) =
93+
&parameters.spatial_decomposition
94+
else {
95+
return Err(anyhow!(
96+
"spatial decomposition parameters for uniform grid are missing"
97+
));
9498
};
9599

96100
// A subdomain will be a cube consisting of this number of MC cubes along each coordinate axis

splashsurf_lib/src/reconstruction_octree.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ impl<I: Index, R: Real> OctreeBasedSurfaceReconstruction<I, R> {
100100
// The grid was already generated by the calling public function
101101
let grid = output_surface.grid.clone();
102102

103-
let Some(SpatialDecomposition::Octree(decomposition_parameters)) = &parameters.spatial_decomposition else {
103+
let Some(SpatialDecomposition::Octree(decomposition_parameters)) =
104+
&parameters.spatial_decomposition
105+
else {
104106
// TODO: Use default values instead?
105107

106108
// If there are no decomposition parameters, we cannot construct an octree.

0 commit comments

Comments
 (0)