Skip to content

Commit

Permalink
Fix copy/paste errors in CUDAProb3 implementation and require yaml-cp…
Browse files Browse the repository at this point in the history
…p to be force downloaded
  • Loading branch information
dbarrow257 committed Oct 8, 2024
1 parent a5dc0c5 commit 8e023b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ endif()

include(CPM)

CPMFindPackage(
CPMAddPackage(
NAME yaml-cpp
VERSION 0.7.0
GITHUB_REPOSITORY "jbeder/yaml-cpp"
Expand Down
2 changes: 1 addition & 1 deletion OscProbCalcer/OscProbCalcer_CUDAProb3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OscProbCalcerCUDAProb3::OscProbCalcerCUDAProb3(YAML::Node Config_) : OscProbCalc
{
//=======
//Grab information from the config
EarthDensityFile = InstanceConfig["EarthModelFileName"].as<std::string>();
EarthDensityFile = Config["EarthModelFileName"].as<std::string>();
std::cout << "EarthDensityFile:" << EarthDensityFile << std::endl;
//=======

Expand Down
2 changes: 1 addition & 1 deletion OscProbCalcer/OscProbCalcer_CUDAProb3.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OscProbCalcerCUDAProb3 : public OscProbCalcerBase {
*
* @param ConfigName_ File path to config
*/
OscProbCalcerCUDAProb3(std::string ConfigName_) : OscProbCalcerNuFASTLinear(YAML::LoadFile(ConfigName_)) {}
OscProbCalcerCUDAProb3(std::string ConfigName_) : OscProbCalcerCUDAProb3(YAML::LoadFile(ConfigName_)) {}

/**
* @brief Destructor
Expand Down

0 comments on commit 8e023b3

Please sign in to comment.