IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 03d0e150 authored by Alan Coleman's avatar Alan Coleman Committed by Maximilian Reininghaus
Browse files

clang format

parent f90cdda1
No related branches found
No related tags found
1 merge request!470Wrong configuration of electromagnetic models in examples
......@@ -29,7 +29,7 @@ namespace corsika {
template <typename T>
inline MassDensityType FlatExponential<T>::getMassDensity(Point const& point) const {
return BaseExponential<FlatExponential<T>>::getMassDensity(
(point - BaseExponential<FlatExponential<T>>::getAnchorPoint()).dot(axis_));
(point - BaseExponential<FlatExponential<T>>::getAnchorPoint()).dot(axis_));
}
template <typename T>
......
......@@ -107,12 +107,12 @@ TEST_CASE("FlatExponential") {
std::vector<Code>{Code::Proton});
SECTION("horizontal") {
//Check that not moving along axis does not change density
// Check that not moving along axis does not change density
CHECK(medium.getMassDensity(Point(gCS, 1_m, 0_m, 0_m)) == rho0);
CHECK(medium.getMassDensity(Point(gCS, 1_m, 0_m, 0_m)) == rho0);
CHECK(medium.getMassDensity(Point(gCS, -1_m, 0_m, 0_m)) == rho0);
CHECK(medium.getMassDensity(Point(gCS, 0_m, 1_m, 0_m)) == rho0);
CHECK(medium.getMassDensity(Point(gCS, 0_m,-1_m, 0_m)) == rho0);
CHECK(medium.getMassDensity(Point(gCS, 0_m, -1_m, 0_m)) == rho0);
Line const line(gOrigin, Vector<SpeedType::dimension_type>(
gCS, {speed, 0_m / second, 0_m / second}));
......@@ -125,7 +125,7 @@ TEST_CASE("FlatExponential") {
}
SECTION("vertical") {
//Moving along axis does change density
// Moving along axis does change density
CHECK(medium.getMassDensity(Point(gCS, 0_m, 0_m, 1_m)) > rho0);
CHECK(medium.getMassDensity(Point(gCS, 0_m, 0_m, -1_m)) < rho0);
......
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