Skip to content
Snippets Groups Projects
Commit ee713cdd authored by Soeren Peters's avatar Soeren Peters
Browse files

Use std::fabs explicitly!

parent 3e70c460
No related branches found
No related tags found
1 merge request!3Add manual numerical gpu test and enable the sonar-scanner again.
...@@ -110,7 +110,7 @@ std::vector<double> NyTest::calcNyDiff(std::vector<double> ny) ...@@ -110,7 +110,7 @@ std::vector<double> NyTest::calcNyDiff(std::vector<double> ny)
{ {
std::vector<double> results; std::vector<double> results;
for (int i = 0; i < ny.size(); i++) for (int i = 0; i < ny.size(); i++)
results.push_back(abs((ny.at(i) - viscosity) / viscosity)); results.push_back(std::fabs((ny.at(i) - viscosity) / viscosity));
return results; return results;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment