diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-06-30 09:44:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-06-30 09:45:37 +0200 |
commit | 24103bc5ae3d568ca97bdb70175b975fa680546c (patch) | |
tree | 595ab9702987a266e7730807cdb1f4279b838a78 /internal.h | |
parent | d8e21cfe33c9fd98109374510311479955684412 (diff) |
Refactor conformal factor evaluation.
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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); |