Skip to content

Commit 9e43824

Browse files
committed
Fix compiler warnings
1 parent 3bb3cad commit 9e43824

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

source/postprocess/particle_distribution_score.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ namespace aspect
3333
{
3434
double local_min_score = std::numeric_limits<double>::max();
3535
double local_max_score = 0;
36-
unsigned int number_of_cells = 0;
3736
std::vector<double> cell_scores;
3837

3938
for (const auto &cell : this->get_dof_handler().active_cell_iterators())
@@ -57,7 +56,6 @@ namespace aspect
5756
}
5857
if (particles_in_cell > 0)
5958
{
60-
++number_of_cells;
6159
const double particles_in_cell_double = static_cast<double>(particles_in_cell);
6260
const double granularity_double = static_cast<double>(granularity);
6361
const double ideal_n_particles_per_bucket = particles_in_cell_double/(Utilities::fixed_power<dim>(granularity_double));
@@ -128,7 +126,6 @@ namespace aspect
128126
}
129127
else if (particles_in_cell == 0)
130128
{
131-
++number_of_cells;
132129
// The score should be bad if there are no particles in a cell
133130
const double distribution_score_current_cell = 1.0;
134131
cell_scores.push_back(distribution_score_current_cell);

0 commit comments

Comments
 (0)