Skip to content

Commit 4b33785

Browse files
committed
Fix for Intel compiler
1 parent edaaadf commit 4b33785

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/Example_apr_iterate.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ iteration strategies on the APR.
1818

1919
#include <algorithm>
2020
#include <iostream>
21-
21+
#include <cmath>
2222
#include "Example_apr_iterate.h"
2323

2424

@@ -153,7 +153,7 @@ int main(int argc, char **argv) {
153153
timer.start_timer("Take the absolute value and output");
154154
ExtraParticleData<float> output_1;
155155
//return the absolute value of the part dataset (includes initialization of the output result)
156-
calc_ex.map(apr,output_1,[](const float &a) { return abs(a); });
156+
calc_ex.map(apr,output_1,[](const float &a) { return std::abs(a); });
157157
timer.stop_timer();
158158

159159
/// Two datasets, binary operation, return result to the particle dataset form which it is performed.
@@ -320,4 +320,4 @@ cmdLineOptions read_command_line_options(int argc, char **argv){
320320

321321
return result;
322322

323-
}
323+
}

0 commit comments

Comments
 (0)