Skip to content

Remove unused sum from particle_list_skeleton.h - #6

Open
iljah wants to merge 1 commit into
masterfrom
iljah-patch-2
Open

Remove unused sum from particle_list_skeleton.h#6
iljah wants to merge 1 commit into
masterfrom
iljah-patch-2

Conversation

@iljah

@iljah iljah commented Jun 24, 2026

Copy link
Copy Markdown

GCC 16.1.1 gives:

In file included from user.cpp:25:
../../include/particle_list_skeleton.h: In instantiation of ”bool ParticleListSkeleton<SPECIES, PARTICLE>::updatePartitioning() [with SPECIES = Species; PARTICLE = Particle<double>]”:
../../include/particle_list_skeleton.h:150:40:   required from ”bool ParticleListSkeleton<SPECIES, PARTICLE>::accumulateBoundaryCells() [with SPECIES = Species; PARTICLE = Particle<double>]”
  150 |    if (sim->meshRepartitioned == true) updatePartitioning();
      |                                        ^~~~~~~~~~~~~~~~~~
../../include/particle_list_skeleton.h:143:6:   required from here
  143 | bool ParticleListSkeleton<SPECIES,PARTICLE>::accumulateBoundaryCells() {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/particle_list_skeleton.h:937:11: warning: muuttuja ”sum” asetettu mutta käyttämätön [-Wunused-but-set-variable=]
  937 |    size_t sum = 0;
      |           ^~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant