From 59e4dd2ca1957c8d8b2fcd72b14968c12966b61b Mon Sep 17 00:00:00 2001 From: Marvin Gottowik <marvingottowik@web.de> Date: Thu, 19 Sep 2024 15:26:32 +0200 Subject: [PATCH] style --- corsika/detail/modules/StackInspector.inl | 8 ++++---- corsika/modules/StackInspector.hpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/corsika/detail/modules/StackInspector.inl b/corsika/detail/modules/StackInspector.inl index ddd37c0f3..239bae013 100644 --- a/corsika/detail/modules/StackInspector.inl +++ b/corsika/detail/modules/StackInspector.inl @@ -59,7 +59,7 @@ namespace corsika { if ((E0_ - Etot) < dE_threshold_) return; // limit number of printouts - if (printoutCounter_ < maxNumberOfPrintouts_) { + if (PrintoutCounter_ < MaxNumberOfPrintouts_) { std::chrono::system_clock::time_point const now = std::chrono::system_clock::now(); std::chrono::duration<double> const elapsed_seconds = now - StartTime_; // seconds @@ -100,11 +100,11 @@ namespace corsika { (progress * 100), getStep(), vS.getSize(), Etot / 1_GeV, (dyday == 0 ? "" : fmt::format("+{}d ", dyday)), ETA_string.str()); - printoutCounter_++; + PrintoutCounter_++; - if (printoutCounter_ == maxNumberOfPrintouts_) { + if (PrintoutCounter_ == MaxNumberOfPrintouts_) { CORSIKA_LOG_DEBUG("StackInspector reached allowed maximum of {} lines printout", - maxNumberOfPrintouts_); + MaxNumberOfPrintouts_); } // Change reference time once the shower has begin (avoid counting overhead time) diff --git a/corsika/modules/StackInspector.hpp b/corsika/modules/StackInspector.hpp index 41b67e8f3..060723fa7 100644 --- a/corsika/modules/StackInspector.hpp +++ b/corsika/modules/StackInspector.hpp @@ -46,8 +46,8 @@ namespace corsika { private: bool ReportStack_; - int printoutCounter_ = 0; - const int maxNumberOfPrintouts_ = 10; + int PrintoutCounter_ = 0; + const int MaxNumberOfPrintouts_ = 10; HEPEnergyType E0_; const HEPEnergyType dE_threshold_ = 1_eV; std::chrono::system_clock::time_point StartTime_; -- GitLab