IAP GITLAB

Skip to content
Snippets Groups Projects

Resolve "UrQMD cross-section regression"

Merged Maximilian Reininghaus requested to merge 403-urqmd-cross-section-regression into master
All threads resolved!
4 files
+ 162
24
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -7,14 +7,15 @@
*/
#pragma once
#include <boost/filesystem/path.hpp>
#include <cstdlib>
#include <stdexcept>
#include <string>
inline std::string corsika::corsika_data(std::string const& key) {
inline boost::filesystem::path corsika::corsika_data(boost::filesystem::path const& key) {
if (auto const* p = std::getenv("CORSIKA_DATA"); p != nullptr) {
auto const path = std::string(p) + "/" + key;
return path;
return boost::filesystem::path(p) / key;
} else {
throw std::runtime_error("CORSIKA_DATA not set");
}
Loading