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 @@
namespace corsika {
OnShellCheck::OnShellCheck(const double vMassTolerance, const double vEnergyTolerance,
const bool vError)
OnShellCheck::OnShellCheck(double const vMassTolerance, double const vEnergyTolerance,
bool const vError)
: mass_tolerance_(vMassTolerance)
, energy_tolerance_(vEnergyTolerance)
, throw_error_(vError) {
......@@ -73,6 +73,7 @@ namespace corsika {
if (throw_error_)
throw std::runtime_error(
"OnShellCheck: error! shifted energy by large amount!");
}
}
// reset energy
......
......@@ -11,6 +11,7 @@
#include <corsika/modules/conex/CONEX_f.hpp>
#include <corsika/framework/random/RNGManager.hpp>
#include <corsika/framework/core/PhysicalConstants.hpp>
#include <corsika/framework/core/Logging.hpp>
#include <conexConfig.h>
......@@ -40,13 +41,6 @@ namespace corsika {
/*
auto const transform = CoordinateSystem::getTransformation(
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;
})}
......
......@@ -11,14 +11,14 @@
#include <corsika/modules/qgsjetII/qgsjet-II-04.hpp>
#include <corsika/framework/random/RNGManager.hpp>
#include <corsika/framework/core/Logging.hpp>
#include <iostream>
#include <random>
datadir::datadir(const std::string& dir) {
if (dir.length() > 130) {
std::cerr << "QGSJetII error, will cut datadir \"" << dir
<< "\" to 130 characters: " << std::endl;
CORSIKA_LOG_ERROR("QGSJetII error, will cut datadir \"{}\" to 130 characters: ", {});
}
int i = 0;
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