From 24103bc5ae3d568ca97bdb70175b975fa680546c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 30 Jun 2017 09:44:25 +0200 Subject: Refactor conformal factor evaluation. --- internal.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'internal.h') 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); -- cgit v1.2.3