aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-08-28 10:07:20 +0200
committerAnton Khirnov <anton@khirnov.net>2016-08-28 10:22:49 +0200
commit63b25eca76d8481a0fdad339464d1eb617826583 (patch)
treecb2e4e7d94aa38cfe096c118938f5b92cf462a5c /internal.h
parent95867280ab72ce6ade22f2cf7fcbc5b47b6cc95d (diff)
qfunc: disentangle the API from the global solver API
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/internal.h b/internal.h
index 19e6d7f..ae9932a 100644
--- a/internal.h
+++ b/internal.h
@@ -22,6 +22,8 @@
#include "brill_data.h"
+#include "qfunc.h"
+
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define SQR(x) ((x) * (x))
@@ -50,18 +52,9 @@ typedef struct BasisSet {
double (*colloc_point)(int order, int idx, double sf);
} BasisSet;
-typedef struct QFunc {
- double (*q)(const BDContext *bd, double rho, double z);
- double (*dq_rho)(const BDContext *bd, double rho, double z);
- double (*dq_z)(const BDContext *bd, double rho, double z);
- double (*d2q_rho)(const BDContext *bd, double rho, double z);
- double (*d2q_z)(const BDContext *bd, double rho, double z);
- double (*d2q_rho_z)(const BDContext *bd, double rho, double z);
-} QFunc;
-
typedef struct BDPriv {
const BasisSet *basis[2];
- const QFunc *q_func;
+ QFuncContext *qfunc;
int nb_colloc_points[2];
int nb_coeffs[2];
@@ -75,8 +68,6 @@ typedef struct BDPriv {
extern const BasisSet bdi_sb_even_basis;
-extern const QFunc bdi_q_func_gundlach;
-extern const QFunc bdi_q_func_eppley;
int bdi_solve(BDContext *bd);