Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • gwu479/Summa-Actors
  • numerical_simulations_lab/actors/Summa-Actors
2 results
Show changes
Showing
with 4005 additions and 1910 deletions
This diff is collapsed.
This diff is collapsed.
character(len=64), parameter :: summaVersion = ''
character(len=64), parameter :: buildTime = ''
character(len=64), parameter :: gitBranch = ''
character(len=64), parameter :: gitHash = ''
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
#include "global.hpp"
#include <chrono>
double calculateTime(std::chrono::time_point<std::chrono::system_clock> start,
......@@ -7,33 +6,3 @@ double calculateTime(std::chrono::time_point<std::chrono::system_clock> start,
return std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
}
// template <typename T>
// std::optional<T> getSettings(std::string settings_file_path, std::string key_1, std::string key_2,
// T return_value) {
// json settings;
// std::string summa_actors_settings = "/Summa_Actors_Settings.json";
// std::ifstream settings_file(settings_file_path + summa_actors_settings);
// settings_file >> settings;
// settings_file.close();
// // find first key
// try {
// if (settings.find(key_1) != settings.end()) {
// json key_1_settings = settings[key_1];
// // find value behind second key
// if (key_1_settings.find(key_2) != key_1_settings.end()) {
// return key_1_settings[key_2];
// } else
// return {};
// } else {
// return {}; // return none in the optional (error value)
// }
// } catch (json::exception& e) {
// std::cout << e.what() << "\n";
// return {};
// }
// }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.