From 92eeff82112488caf09555cc07269aa99c0e3295 Mon Sep 17 00:00:00 2001 From: Andreas Adelmann <andreas.adelmann@psi.ch> Date: Sun, 23 Jun 2024 20:50:00 +0200 Subject: [PATCH] fix reorder and always return values in functions --- src/PartBunch/PartBunch.hpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/PartBunch/PartBunch.hpp b/src/PartBunch/PartBunch.hpp index c5a29e80d..5a9069d3b 100644 --- a/src/PartBunch/PartBunch.hpp +++ b/src/PartBunch/PartBunch.hpp @@ -161,12 +161,6 @@ private: /// steps per turn for OPAL-cycl int stepsPerTurn_m; - /// step in a TRACK command - long long localTrackStep_m; - - /// if multiple TRACK commands - long long globalTrackStep_m; - /// current bunch number short numBunch_m; @@ -188,6 +182,12 @@ private: double mi_m; double rmsDensity_m; + /// step in a TRACK command + long long localTrackStep_m; + + /// if multiple TRACK commands + long long globalTrackStep_m; + // unit state of PartBunch // UnitState_t unit_state_m; // UnitState_t stateOfLastBoundP_m; @@ -449,6 +449,7 @@ public: bool isGridFixed() { + return false; } void boundp() { @@ -528,15 +529,19 @@ public: void setEnergyBins(int numberOfEnergyBins) { } bool weHaveEnergyBins() { + return false; } void setTEmission(double t) { } double getTEmission() { + return 0.0; } bool weHaveBins() { + return false; } // void setPBins(PartBins* pbin) {} size_t emitParticles(double eZ) { + return 0; } void updateNumTotal() { } @@ -551,6 +556,7 @@ public: double getBinGamma(int bin) { } bool hasBinning() { + return false; } void setBinCharge(int bin, double q) { } @@ -559,6 +565,7 @@ public: double calcMeanPhi() { } bool resetPartBinID2(const double eta) { + return false; } bool resetPartBinBunch() { } -- GitLab