IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0c68c6ad authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

format

parent 0f868194
No related branches found
No related tags found
1 merge request!402Resolve "ExponentialRefractiveIndex assumes a flat environment"
Pipeline #5946 passed
...@@ -54,8 +54,8 @@ namespace corsika { ...@@ -54,8 +54,8 @@ namespace corsika {
} }
template <typename TTimeType, typename TSpaceVecType> template <typename TTimeType, typename TSpaceVecType>
inline FourVector<TTimeType, TSpaceVecType>& inline FourVector<TTimeType, TSpaceVecType>& FourVector<TTimeType, TSpaceVecType>::
FourVector<TTimeType, TSpaceVecType>::operator+=(FourVector const& b) { operator+=(FourVector const& b) {
timeLike_ += b.timeLike_; timeLike_ += b.timeLike_;
spaceLike_ += b.spaceLike_; spaceLike_ += b.spaceLike_;
...@@ -63,39 +63,39 @@ namespace corsika { ...@@ -63,39 +63,39 @@ namespace corsika {
} }
template <typename TTimeType, typename TSpaceVecType> template <typename TTimeType, typename TSpaceVecType>
inline FourVector<TTimeType, TSpaceVecType>& inline FourVector<TTimeType, TSpaceVecType>& FourVector<TTimeType, TSpaceVecType>::
FourVector<TTimeType, TSpaceVecType>::operator-=(FourVector const& b) { operator-=(FourVector const& b) {
timeLike_ -= b.timeLike_; timeLike_ -= b.timeLike_;
spaceLike_ -= b.spaceLike_; spaceLike_ -= b.spaceLike_;
return *this; return *this;
} }
template <typename TTimeType, typename TSpaceVecType> template <typename TTimeType, typename TSpaceVecType>
inline FourVector<TTimeType, TSpaceVecType>& inline FourVector<TTimeType, TSpaceVecType>& FourVector<TTimeType, TSpaceVecType>::
FourVector<TTimeType, TSpaceVecType>::operator*=(double const b) { operator*=(double const b) {
timeLike_ *= b; timeLike_ *= b;
spaceLike_ *= b; spaceLike_ *= b;
return *this; return *this;
} }
template <typename TTimeType, typename TSpaceVecType> template <typename TTimeType, typename TSpaceVecType>
inline FourVector<TTimeType, TSpaceVecType>& inline FourVector<TTimeType, TSpaceVecType>& FourVector<TTimeType, TSpaceVecType>::
FourVector<TTimeType, TSpaceVecType>::operator/=(double const b) { operator/=(double const b) {
timeLike_ /= b; timeLike_ /= b;
spaceLike_.getComponents() /= b; spaceLike_.getComponents() /= b;
return *this; return *this;
} }
template <typename TTimeType, typename TSpaceVecType> template <typename TTimeType, typename TSpaceVecType>
inline FourVector<TTimeType, TSpaceVecType>& inline FourVector<TTimeType, TSpaceVecType>& FourVector<TTimeType, TSpaceVecType>::
FourVector<TTimeType, TSpaceVecType>::operator/(double const b) { operator/(double const b) {
*this /= b; *this /= b;
return *this; return *this;
} }
template <typename TTimeType, typename TSpaceVecType> template <typename TTimeType, typename TSpaceVecType>
inline typename FourVector<TTimeType, TSpaceVecType>::norm_type inline typename FourVector<TTimeType, TSpaceVecType>::norm_type
FourVector<TTimeType, TSpaceVecType>::operator*(FourVector const& b) { FourVector<TTimeType, TSpaceVecType>::operator*(FourVector const& b) {
if constexpr (std::is_same<time_type, decltype(std::declval<space_type>() / meter * if constexpr (std::is_same<time_type, decltype(std::declval<space_type>() / meter *
second)>::value) second)>::value)
return timeLike_ * b.timeLike_ * constants::cSquared - spaceLike_.norm(); return timeLike_ * b.timeLike_ * constants::cSquared - spaceLike_.norm();
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
namespace corsika { namespace corsika {
template <typename TDimension> template <typename TDimension>
inline typename QuantityVector<TDimension>::quantity_type inline typename QuantityVector<TDimension>::quantity_type QuantityVector<TDimension>::
QuantityVector<TDimension>::operator[](size_t const index) const { operator[](size_t const index) const {
return quantity_type(phys::units::detail::magnitude_tag, eigenVector_[index]); return quantity_type(phys::units::detail::magnitude_tag, eigenVector_[index]);
} }
......
...@@ -20,7 +20,7 @@ namespace corsika { ...@@ -20,7 +20,7 @@ namespace corsika {
template <class AConstIterator, class BConstIterator> template <class AConstIterator, class BConstIterator>
inline typename WeightProviderIterator<AConstIterator, BConstIterator>::value_type inline typename WeightProviderIterator<AConstIterator, BConstIterator>::value_type
WeightProviderIterator<AConstIterator, BConstIterator>::operator*() const { WeightProviderIterator<AConstIterator, BConstIterator>::operator*() const {
return ((*aIter_) * (*bIter_)).magnitude(); return ((*aIter_) * (*bIter_)).magnitude();
} }
......
...@@ -56,8 +56,8 @@ namespace corsika::proposal { ...@@ -56,8 +56,8 @@ namespace corsika::proposal {
PROPOSAL::InterpolationSettings::TABLES_PATH = corsika_data("PROPOSAL").c_str(); PROPOSAL::InterpolationSettings::TABLES_PATH = corsika_data("PROPOSAL").c_str();
} }
inline size_t ProposalProcessBase::hash::operator()( inline size_t ProposalProcessBase::hash::operator()(const calc_key_t& p) const
const calc_key_t& p) const noexcept { noexcept {
return p.first ^ std::hash<Code>{}(p.second); return p.first ^ std::hash<Code>{}(p.second);
} }
......
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