IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 68425b66 authored by Nikos Karastathis's avatar Nikos Karastathis :ocean:
Browse files

earth's surface point does not need to be stored

parent c43f951f
No related branches found
No related tags found
1 merge request!502Gladstone-Dale law rerfactive index profile
This commit is part of merge request !502. Comments created here will be created in the context of that merge request.
...@@ -18,9 +18,7 @@ namespace corsika { ...@@ -18,9 +18,7 @@ namespace corsika {
Point const point, Args&&... args) Point const point, Args&&... args)
: T(std::forward<Args>(args)...) : T(std::forward<Args>(args)...)
, seaLevelRefractiveIndex_(seaLevelRefractiveIndex) , seaLevelRefractiveIndex_(seaLevelRefractiveIndex)
, earthSurface_(point) , seaLevelDensity_(this->getMassDensity(point)) {}
, seaLevelDensity_(this->getMassDensity(earthSurface_)) {}
// , ratio_((1. - seaLevelRefractiveIndex_) / (seaLevelDensity_ * cube(1_m) / 1_kg)) {}
template <typename T> template <typename T>
inline double GladstoneDaleRefractiveIndex<T>::getRefractiveIndex(Point const& point) const { inline double GladstoneDaleRefractiveIndex<T>::getRefractiveIndex(Point const& point) const {
......
...@@ -22,9 +22,7 @@ namespace corsika { ...@@ -22,9 +22,7 @@ namespace corsika {
class GladstoneDaleRefractiveIndex final : public T { class GladstoneDaleRefractiveIndex final : public T {
double const seaLevelRefractiveIndex_; ///< The constant refractive index at sea level. double const seaLevelRefractiveIndex_; ///< The constant refractive index at sea level.
Point const earthSurface_; ///< A point at earth's surface.
MassDensityType const seaLevelDensity_; ///< The constant mass density at sea level. MassDensityType const seaLevelDensity_; ///< The constant mass density at sea level.
// MassDensityType ratio_; ///< (1 - seaLevelRefractiveIndex_) / seaLevelDensity_.
public: public:
/** /**
......
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