Skip to content

Commit

Permalink
define M_PI in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Oct 15, 2020
1 parent 465f6a2 commit 96ccf22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gala/potential/potential/builtin/builtin_potentials.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

extern double nan_density(double t, double *pars, double *q, int n_dim);
extern double nan_value(double t, double *pars, double *q, int n_dim);
extern void nan_gradient(double t, double *pars, double *q, int n_dim, double *grad);
Expand Down
4 changes: 4 additions & 0 deletions gala/potential/scf/src/bfe_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ extern double phi_nlm(double s, double phi, double X, int n, int l, int m);

extern void sph_grad_phi_nlm(double s, double phi, double X, int n, int l, int m, int lmax, double *sphgrad);
// #endif

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
4 changes: 4 additions & 0 deletions gala/potential/scf/src/coeff_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ extern void c_STnlm_discrete(double *s, double *phi, double *X, double *m_k, int

extern void c_STnlm_var_discrete(double *s, double *phi, double *X, double *m_k, int K,
int n, int l, int m, double *ST_var);

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

0 comments on commit 96ccf22

Please sign in to comment.