IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 41a2ef67 authored by ralfulrich's avatar ralfulrich
Browse files

missing bracket

parent 9262d7e8
No related branches found
No related tags found
1 merge request!309Resolve "Search and remove all "cout" . "cerr", "iostream" and "endl" and replace by spdlog"
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
namespace corsika { namespace corsika {
OnShellCheck::OnShellCheck(const double vMassTolerance, const double vEnergyTolerance, OnShellCheck::OnShellCheck(double const vMassTolerance, double const vEnergyTolerance,
const bool vError) bool const vError)
: mass_tolerance_(vMassTolerance) : mass_tolerance_(vMassTolerance)
, energy_tolerance_(vEnergyTolerance) , energy_tolerance_(vEnergyTolerance)
, throw_error_(vError) { , throw_error_(vError) {
...@@ -73,6 +73,7 @@ namespace corsika { ...@@ -73,6 +73,7 @@ namespace corsika {
if (throw_error_) if (throw_error_)
throw std::runtime_error( throw std::runtime_error(
"OnShellCheck: error! shifted energy by large amount!"); "OnShellCheck: error! shifted energy by large amount!");
}
} }
// reset energy // reset energy
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <corsika/modules/conex/CONEX_f.hpp> #include <corsika/modules/conex/CONEX_f.hpp>
#include <corsika/framework/random/RNGManager.hpp> #include <corsika/framework/random/RNGManager.hpp>
#include <corsika/framework/core/PhysicalConstants.hpp> #include <corsika/framework/core/PhysicalConstants.hpp>
#include <corsika/framework/core/Logging.hpp>
#include <conexConfig.h> #include <conexConfig.h>
...@@ -40,13 +41,6 @@ namespace corsika { ...@@ -40,13 +41,6 @@ namespace corsika {
/* /*
auto const transform = CoordinateSystem::getTransformation( auto const transform = CoordinateSystem::getTransformation(
intermediateCS2, c8cs); // either this way or vice versa... TODO: test this! intermediateCS2, c8cs); // either this way or vice versa... TODO: test this!
std::cout << transform.matrix() << std::endl << std::endl;
std::cout << CoordinateSystem::getTransformation(intermediateCS, c8cs).matrix()
<< std::endl
<< std::endl;
std::cout << CoordinateSystem::getTransformation(intermediateCS2, intermediateCS)
.matrix()
<< std::endl;
*/ */
return transformCS; return transformCS;
})} })}
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
#include <corsika/modules/qgsjetII/qgsjet-II-04.hpp> #include <corsika/modules/qgsjetII/qgsjet-II-04.hpp>
#include <corsika/framework/random/RNGManager.hpp> #include <corsika/framework/random/RNGManager.hpp>
#include <corsika/framework/core/Logging.hpp>
#include <iostream> #include <iostream>
#include <random> #include <random>
datadir::datadir(const std::string& dir) { datadir::datadir(const std::string& dir) {
if (dir.length() > 130) { if (dir.length() > 130) {
std::cerr << "QGSJetII error, will cut datadir \"" << dir CORSIKA_LOG_ERROR("QGSJetII error, will cut datadir \"{}\" to 130 characters: ", {});
<< "\" to 130 characters: " << std::endl;
} }
int i = 0; int i = 0;
for (i = 0; i < std::min(130, int(dir.length())); ++i) data[i] = dir[i]; for (i = 0; i < std::min(130, int(dir.length())); ++i) data[i] = dir[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment