From 88fe91f7aec5fdb164bf6cedd0e920fd1303a278 Mon Sep 17 00:00:00 2001 From: Adrian Price-Whelan Date: Thu, 10 Aug 2023 21:04:17 -0400 Subject: [PATCH] more dummy functions --- gala/potential/scf/src/bfe.c | 25 +++++++++++++++++++++++++ gala/potential/scf/src/coeff_helper.c | 9 +++++++++ 2 files changed, 34 insertions(+) diff --git a/gala/potential/scf/src/bfe.c b/gala/potential/scf/src/bfe.c index 6d1b119f8..a929a2349 100644 --- a/gala/potential/scf/src/bfe.c +++ b/gala/potential/scf/src/bfe.c @@ -491,3 +491,28 @@ void scf_interp_gradient(double t, double *pars, double *q, int n_dim, } #endif + +// NOTE: Only Windows needs the definitions here to link... not sure why +#if USE_GSL == 1 +void scf_density_helper(double *xyz, int K, double M, double r_s, + double *Snlm, double *Tnlm, + int nmax, int lmax, double *dens) {} + +void scf_potential_helper(double *xyz, int K, + double G, double M, double r_s, + double *Snlm, double *Tnlm, + int nmax, int lmax, double *val) {} + +void scf_gradient_helper(double *xyz, int K, + double G, double M, double r_s, + double *Snlm, double *Tnlm, + int nmax, int lmax, double *grad) {} + +double scf_value(double t, double *pars, double *q, int n_dim) { return 0.; } +void scf_gradient(double t, double *pars, double *q, int n_dim, double *grad) {} +double scf_density(double t, double *pars, double *q, int n_dim) { return 0.; } + +double scf_interp_value(double t, double *pars, double *q, int n_dim) { return 0.; } +void scf_interp_gradient(double t, double *pars, double *q, int n_dim, double *grad) {} +double scf_interp_density(double t, double *pars, double *q, int n_dim) {return 0.; } +#endif \ No newline at end of file diff --git a/gala/potential/scf/src/coeff_helper.c b/gala/potential/scf/src/coeff_helper.c index 6ac4835a2..61c34270a 100644 --- a/gala/potential/scf/src/coeff_helper.c +++ b/gala/potential/scf/src/coeff_helper.c @@ -115,3 +115,12 @@ void c_STnlm_var_discrete(double *s, double *phi, double *X, double *m_k, int K, } } #endif + + +// NOTE: Only Windows needs the definitions here to link... not sure why +#if USE_GSL == 1 +double c_Snlm_integrand(double phi, double X, double xsi, double density, int n, int l, int m) { return 0.; } +double c_Tnlm_integrand(double phi, double X, double xsi, double density, int n, int l, int m) { return 0.; } +void c_STnlm_discrete(double *s, double *phi, double *X, double *m_k, int K, int n, int l, int m, double *ST) {} +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) {} +#endif \ No newline at end of file