Skip to content

Commit

Permalink
Adding '#define _USE_MATH_DEFINES' to make M_PI declared in Intel and…
Browse files Browse the repository at this point in the history
… MSVC compilers (#3238)

Co-authored-by: Paul Romano <[email protected]>
  • Loading branch information
MAS-OUD and paulromano authored Jan 7, 2025
1 parent 3a001d3 commit 3933348
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/external/quartic_solver.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <algorithm>
#define _USE_MATH_DEFINES // to make M_PI declared in Intel and MSVC compilers
#include <cmath>
#include <complex>
#include <cstdlib>
Expand Down
7 changes: 4 additions & 3 deletions src/mesh.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "openmc/mesh.h"
#include <algorithm> // for copy, equal, min, min_element
#include <cmath> // for ceil
#include <cstddef> // for size_t
#include <algorithm> // for copy, equal, min, min_element
#define _USE_MATH_DEFINES // to make M_PI declared in Intel and MSVC compilers
#include <cmath> // for ceil
#include <cstddef> // for size_t
#include <gsl/gsl-lite.hpp>
#include <string>

Expand Down
2 changes: 2 additions & 0 deletions src/plot.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "openmc/plot.h"

#include <algorithm>
#define _USE_MATH_DEFINES // to make M_PI declared in Intel and MSVC compilers
#include <cmath>
#include <cstdio>
#include <fstream>
#include <sstream>
Expand Down

0 comments on commit 3933348

Please sign in to comment.