IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0e43ec02 authored by ralfulrich's avatar ralfulrich
Browse files

added corsika_data

parent 907d4f95
No related branches found
No related tags found
1 merge request!404adding Geomagnetic Models
...@@ -15,7 +15,7 @@ namespace corsika { ...@@ -15,7 +15,7 @@ namespace corsika {
* @file CorsikaData.hpp * @file CorsikaData.hpp
* @ingroup Utilities * @ingroup Utilities
* @{ * @{
* returns the full path of the file \p filename within the CORSIKA_DATA directory * returns the full path of the file \p filename within the CORSIKA_DATA directory.
*/ */
boost::filesystem::path corsika_data(boost::filesystem::path const& filename); boost::filesystem::path corsika_data(boost::filesystem::path const& filename);
......
...@@ -200,7 +200,7 @@ int main(int argc, char** argv) { ...@@ -200,7 +200,7 @@ int main(int argc, char** argv) {
EnvType env; EnvType env;
CoordinateSystemPtr const& rootCS = env.getCoordinateSystem(); CoordinateSystemPtr const& rootCS = env.getCoordinateSystem();
Point const center{rootCS, 0_m, 0_m, 0_m}; Point const center{rootCS, 0_m, 0_m, 0_m};
GeomagneticModel wmm(center, "GeoMag/WMM.COF"); GeomagneticModel wmm(center, corsika_data("GeoMag/WMM.COF"));
// build a Linsley US Standard atmosphere into `env` // build a Linsley US Standard atmosphere into `env`
create_5layer_atmosphere<setup::EnvironmentInterface, MyExtraEnv>( create_5layer_atmosphere<setup::EnvironmentInterface, MyExtraEnv>(
......
...@@ -126,7 +126,7 @@ int main(int argc, char** argv) { ...@@ -126,7 +126,7 @@ int main(int argc, char** argv) {
EnvType env; EnvType env;
CoordinateSystemPtr const& rootCS = env.getCoordinateSystem(); CoordinateSystemPtr const& rootCS = env.getCoordinateSystem();
Point const center{rootCS, 0_m, 0_m, 0_m}; Point const center{rootCS, 0_m, 0_m, 0_m};
GeomagneticModel wmm(center, "GeoMag/WMM.COF"); GeomagneticModel wmm(center, corsika_data("GeoMag/WMM.COF"));
// build a Linsley US Standard atmosphere into `env` // build a Linsley US Standard atmosphere into `env`
create_5layer_atmosphere<setup::EnvironmentInterface, MyExtraEnv>( create_5layer_atmosphere<setup::EnvironmentInterface, MyExtraEnv>(
......
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