clang-format and clang-tidy fixes for 7f16cc14

This commit is contained in:
github-actions 2021-10-27 20:23:13 +00:00
parent 7f16cc1413
commit c76e97f010

View File

@ -19,15 +19,14 @@
* *
* @author [ggkogkou](https://github.com/ggkogkou) * @author [ggkogkou](https://github.com/ggkogkou)
*/ */
#include <cassert> /// for assert #include <cassert> /// for assert
#include <cmath> /// for math functions #include <cmath> /// for math functions
#include <cmath>
#include <cstdlib> /// for std::atof #include <cstdlib> /// for std::atof
#include <functional> /// for std::function #include <functional> /// for std::function
#include <iostream> /// for IO operations #include <iostream> /// for IO operations
#include <map> /// for std::map container #include <map> /// for std::map container
#include "math.h"
/** /**
* @namespace numerical_methods * @namespace numerical_methods
* @brief Numerical algorithms/methods * @brief Numerical algorithms/methods
@ -159,8 +158,9 @@ int main(int argc, char** argv) {
// Check if a<b else abort // Check if a<b else abort
assert(a < b && "a has to be less than b"); assert(a < b && "a has to be less than b");
assert(N > 0 && "N has to be > 0"); assert(N > 0 && "N has to be > 0");
if (N < 4 || a != 1 || b != 3) if (N < 4 || a != 1 || b != 3) {
used_argv_parameters = true; used_argv_parameters = true;
}
std::cout << "You selected N=" << N << ", a=" << a << ", b=" << b std::cout << "You selected N=" << N << ", a=" << a << ", b=" << b
<< std::endl; << std::endl;
} else { } else {