Skip to content

Commit

Permalink
more dummy functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Aug 11, 2023
1 parent 9cc02bf commit 88fe91f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions gala/potential/scf/src/bfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions gala/potential/scf/src/coeff_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 88fe91f

Please sign in to comment.