mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 09:28:23 +01:00
Revert "Change TugUtils.hpp to TugUtils.cpp"
This reverts commit 81774e72c1b7b5332ce3d3a57397ee4a4b521d4a.
This commit is contained in:
parent
0d34752837
commit
d7608a7330
35
src/TugUtils.hpp
Normal file
35
src/TugUtils.hpp
Normal file
@ -0,0 +1,35 @@
|
||||
// #ifndef BTCSUTILS_H_
|
||||
// #define BTCSUTILS_H_
|
||||
|
||||
// #include <chrono>
|
||||
// #include <stdexcept>
|
||||
// #include <string>
|
||||
|
||||
// #define throw_invalid_argument(msg) \
|
||||
// throw std::invalid_argument(std::string(__FILE__) + ":" + \
|
||||
// std::to_string(__LINE__) + ":" + \
|
||||
// std::string(msg))
|
||||
|
||||
// #define throw_out_of_range(msg) \
|
||||
// throw std::out_of_range(std::string(__FILE__) + ":" + \
|
||||
// std::to_string(__LINE__) + ":" + std::string(msg))
|
||||
|
||||
// #define time_marker() std::chrono::high_resolution_clock::now()
|
||||
|
||||
// #define diff_time(start, end) \
|
||||
// ({ \
|
||||
// std::chrono::duration<double> duration = \
|
||||
// std::chrono::duration_cast<std::chrono::duration<double>>(end - \
|
||||
// start); \
|
||||
// duration.count(); \
|
||||
// })
|
||||
// #endif // BTCSUTILS_H_
|
||||
|
||||
// // calculates arithmetic or harmonic mean of alpha between two cells
|
||||
// static double calcAlphaIntercell(double &alpha1, double &alpha2, bool useHarmonic = true) {
|
||||
// if (useHarmonic) {
|
||||
// return double(2) / ((double(1)/alpha1) + (double(1)/alpha2));
|
||||
// } else {
|
||||
// return 0.5 * (alpha1 + alpha2);
|
||||
// }
|
||||
// }
|
||||
Loading…
x
Reference in New Issue
Block a user