KATRIN-Experiment / Kassiopeia

Simulation of electric and magnetic fields and particle tracking
https://katrin-experiment.github.io/Kassiopeia/index.html
Other
47 stars 29 forks source link

Fix compiler warnings from MagfieldCoils #86

Closed richeldichel closed 5 months ago

richeldichel commented 1 year ago

As reported in issue #84 there appear many compiler warnings when building MagfieldCoils.cxx (mostly [-Wmisleading-indentation] and [-Wunused-variable].

This pull request removes the warnings and further applies .clang-format to MagfieldCoils.cxx and MagfieldCoils.h

richeldichel commented 1 year ago

Thanks for the remarks @2xB. I also see these issues. Unfortunately I also do not have the clearest overview on this code. I would propose, because I feel like these issues need a little more time than I can offer at the moment, to go ahead with this merge and put the issues onto the issue tracker.

We can, however, already remove the compile option that you mentioned!

2xB commented 6 months ago

Nice! I did the last remaining open point according to an answer Ferenc wrote back then (nmax <= 1 can't be used, nmax=500 is recommended, so it now throws a corresponding error in case of nmax <= 1). Since I was a bit fast committing using the web IDE, there are two amends as separate commits, which I have to apologize for.

richeldichel commented 5 months ago

Nice! I did the last remaining open point according to an answer Ferenc wrote back then (nmax <= 1 can't be used, nmax=500 is recommended, so it now throws a corresponding error in case of nmax <= 1). Since I was a bit fast committing using the web IDE, there are two amends as separate commits, which I have to apologize for.

Thanks! I squashed your two additional commits so that this pull request can now also be finally merged.