aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 372cc0d..d35343f 100644
--- a/internal.h
+++ b/internal.h
@@ -24,7 +24,9 @@
#include "basis.h"
#include "qfunc.h"
+#include "threadpool.h"
+#define MIN(x, y) ((x) > (y) ? (y) : (x))
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define SQR(x) ((x) * (x))
@@ -54,6 +56,11 @@ typedef struct BDPriv {
double *coeffs;
ptrdiff_t coeffs_stride;
+
+ int cpu_flags;
+
+ double (*scalarproduct_metric)(size_t len1, size_t len2, double *mat,
+ double *vec1, double *vec2);
} BDPriv;
#define NB_COEFFS(s) (s->nb_coeffs[0] * s->nb_coeffs[1])
@@ -71,6 +78,12 @@ void bdi_eval_metric(const BDContext *bd,
double *psi[9], double *q[9],
double *out, ptrdiff_t out_stride);
+int bdi_eval_psi_radial(const BDContext *bd,
+ const double *rho, int nb_coords_rho,
+ const double *z, int nb_coords_z,
+ const unsigned int diff_order[2],
+ double *psi, ptrdiff_t psi_stride);
+
void bdi_log(const BDContext *bd, int level, const char *fmt, ...);
void bdi_log_default_callback(const BDContext *bd, int level,
const char *fmt, va_list vl);