Skip to content

Commit

Permalink
Added setenv in the constructor for MarleyCrossSection.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
marichavest committed Oct 2, 2024
1 parent b1ea2c8 commit 107bb4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/interactions/private/MarleyCrossSection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ namespace siren {
namespace interactions {

//MarleyCrossSection::MarleyCrossSection() {}
MarleyCrossSection::MarleyCrossSection(const std::string& marley_config) {
MarleyCrossSection::MarleyCrossSection(std::string marley_config, std::string search_path) {
setenv("MARLEY", "", 0);
setenv("MARLEY_SEARCH_PATH", search_path.c_str(), 0);
InitializeMarley(marley_config);
}

Expand Down

0 comments on commit 107bb4e

Please sign in to comment.