IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 55775fc4 authored by ralfulrich's avatar ralfulrich
Browse files

style

parent 46d2e5c9
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ using namespace std; ...@@ -54,7 +54,7 @@ using namespace std;
// //
int main() { int main() {
//logging::set_level(logging::level::info); // logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
logging::set_level(logging::level::trace); logging::set_level(logging::level::trace);
......
...@@ -173,7 +173,7 @@ TEST_CASE("boosts") { ...@@ -173,7 +173,7 @@ TEST_CASE("boosts") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
// define target kinematics in lab frame // define target kinematics in lab frame
HEPMassType const targetMass = 1_GeV; HEPMassType const targetMass = 1_GeV;
MomentumVector pTargetLab{rootCS, {0_eV, 0_eV, 0_eV}}; MomentumVector pTargetLab{rootCS, {0_eV, 0_eV, 0_eV}};
......
...@@ -107,7 +107,7 @@ TEST_CASE("ClassTimer", "[Timer]") { ...@@ -107,7 +107,7 @@ TEST_CASE("ClassTimer", "[Timer]") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
SECTION("Measure runtime of a function without arguments") { SECTION("Measure runtime of a function without arguments") {
auto test = foo(); auto test = foo();
......
...@@ -34,7 +34,7 @@ TEST_CASE("FunctionTimer", "[Timer]") { ...@@ -34,7 +34,7 @@ TEST_CASE("FunctionTimer", "[Timer]") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
SECTION("Measure runtime of a free function") { SECTION("Measure runtime of a free function") {
auto test = corsika::FunctionTimer(testFunc); auto test = corsika::FunctionTimer(testFunc);
......
...@@ -30,7 +30,7 @@ TEST_CASE("transformations between CoordinateSystems") { ...@@ -30,7 +30,7 @@ TEST_CASE("transformations between CoordinateSystems") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
CoordinateSystemPtr rootCS = get_root_CoordinateSystem(); CoordinateSystemPtr rootCS = get_root_CoordinateSystem();
QuantityVector<length_d> const coordinates{0_m, 0_m, 0_m}; QuantityVector<length_d> const coordinates{0_m, 0_m, 0_m};
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
using namespace corsika; using namespace corsika;
TEST_CASE("Logging", "[Logging]") { TEST_CASE("Logging", "[Logging]") {
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
SECTION("top level functions using default corsika logger") { SECTION("top level functions using default corsika logger") {
logging::info("(1) This is an info message!"); logging::info("(1) This is an info message!");
logging::warn("(1) This is a warning message!"); logging::warn("(1) This is a warning message!");
......
...@@ -42,7 +42,7 @@ TEST_CASE("HomogeneousMedium") { ...@@ -42,7 +42,7 @@ TEST_CASE("HomogeneousMedium") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
NuclearComposition const protonComposition(std::vector<Code>{Code::Proton}, NuclearComposition const protonComposition(std::vector<Code>{Code::Proton},
std::vector<float>{1.f}); std::vector<float>{1.f});
HomogeneousMedium<IMediumModel> const medium(19.2_g / cube(1_cm), protonComposition); HomogeneousMedium<IMediumModel> const medium(19.2_g / cube(1_cm), protonComposition);
...@@ -52,7 +52,7 @@ TEST_CASE("FlatExponential") { ...@@ -52,7 +52,7 @@ TEST_CASE("FlatExponential") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
NuclearComposition const protonComposition(std::vector<Code>{Code::Proton}, NuclearComposition const protonComposition(std::vector<Code>{Code::Proton},
std::vector<float>{1.f}); std::vector<float>{1.f});
...@@ -115,7 +115,7 @@ TEST_CASE("SlidingPlanarExponential") { ...@@ -115,7 +115,7 @@ TEST_CASE("SlidingPlanarExponential") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
NuclearComposition const protonComposition(std::vector<Code>{Code::Proton}, NuclearComposition const protonComposition(std::vector<Code>{Code::Proton},
std::vector<float>{1.f}); std::vector<float>{1.f});
...@@ -176,7 +176,7 @@ TEST_CASE("InhomogeneousMedium") { ...@@ -176,7 +176,7 @@ TEST_CASE("InhomogeneousMedium") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
Vector direction(gCS, QuantityVector<dimensionless_d>(1, 0, 0)); Vector direction(gCS, QuantityVector<dimensionless_d>(1, 0, 0));
Line line(gOrigin, Vector<SpeedType::dimension_type>( Line line(gOrigin, Vector<SpeedType::dimension_type>(
......
...@@ -49,7 +49,7 @@ TEST_CASE("Homogeneous Density") { ...@@ -49,7 +49,7 @@ TEST_CASE("Homogeneous Density") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
auto [env, csPtr, nodePtr] = setupEnvironment(Code::Nitrogen); auto [env, csPtr, nodePtr] = setupEnvironment(Code::Nitrogen);
auto const& cs = *csPtr; auto const& cs = *csPtr;
[[maybe_unused]] auto const& env_dummy = env; [[maybe_unused]] auto const& env_dummy = env;
......
...@@ -40,7 +40,7 @@ TEST_CASE("CONEXSourceCut") { ...@@ -40,7 +40,7 @@ TEST_CASE("CONEXSourceCut") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
RNGManager::getInstance().registerRandomStream("cascade"); RNGManager::getInstance().registerRandomStream("cascade");
RNGManager::getInstance().registerRandomStream("sibyll"); RNGManager::getInstance().registerRandomStream("sibyll");
......
...@@ -28,7 +28,7 @@ TEST_CASE("Timing process", "[proccesses][analytic_processors ExecTime]") { ...@@ -28,7 +28,7 @@ TEST_CASE("Timing process", "[proccesses][analytic_processors ExecTime]") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
int tmp = 0; int tmp = 0;
SECTION("BoundaryCrossing") { SECTION("BoundaryCrossing") {
......
...@@ -106,7 +106,7 @@ TEST_CASE("InteractionCounterOutput", "[output validation]") { ...@@ -106,7 +106,7 @@ TEST_CASE("InteractionCounterOutput", "[output validation]") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
auto file = GENERATE(as<std::string>{}, "testInteractionCounter_file1", auto file = GENERATE(as<std::string>{}, "testInteractionCounter_file1",
"testInteractionCounter_file2"); "testInteractionCounter_file2");
......
...@@ -26,7 +26,7 @@ TEST_CASE("ParticleCut", "[processes]") { ...@@ -26,7 +26,7 @@ TEST_CASE("ParticleCut", "[processes]") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
feenableexcept(FE_INVALID); feenableexcept(FE_INVALID);
using EnvType = setup::Environment; using EnvType = setup::Environment;
......
...@@ -60,7 +60,7 @@ TEST_CASE("UrQMD") { ...@@ -60,7 +60,7 @@ TEST_CASE("UrQMD") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v"); corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
SECTION("conversion") { SECTION("conversion") {
CHECK_THROWS(corsika::urqmd::convertFromUrQMD(106, 0)); CHECK_THROWS(corsika::urqmd::convertFromUrQMD(106, 0));
CHECK(corsika::urqmd::convertFromUrQMD(101, 0) == Code::Pi0); CHECK(corsika::urqmd::convertFromUrQMD(101, 0) == Code::Pi0);
......
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