From 9e438241cc8f249a3477d69b77f75caf89369c0e Mon Sep 17 00:00:00 2001 From: tiannh7 Date: Mon, 10 Nov 2025 17:19:04 +0800 Subject: [PATCH] Fix compiler warnings --- source/postprocess/particle_distribution_score.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/postprocess/particle_distribution_score.cc b/source/postprocess/particle_distribution_score.cc index ea1193c06a4..e64fc8201c1 100644 --- a/source/postprocess/particle_distribution_score.cc +++ b/source/postprocess/particle_distribution_score.cc @@ -33,7 +33,6 @@ namespace aspect { double local_min_score = std::numeric_limits::max(); double local_max_score = 0; - unsigned int number_of_cells = 0; std::vector cell_scores; for (const auto &cell : this->get_dof_handler().active_cell_iterators()) @@ -57,7 +56,6 @@ namespace aspect } if (particles_in_cell > 0) { - ++number_of_cells; const double particles_in_cell_double = static_cast(particles_in_cell); const double granularity_double = static_cast(granularity); const double ideal_n_particles_per_bucket = particles_in_cell_double/(Utilities::fixed_power(granularity_double)); @@ -128,7 +126,6 @@ namespace aspect } else if (particles_in_cell == 0) { - ++number_of_cells; // The score should be bad if there are no particles in a cell const double distribution_score_current_cell = 1.0; cell_scores.push_back(distribution_score_current_cell);