diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-08-28 10:07:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-08-28 10:22:49 +0200 |
commit | 63b25eca76d8481a0fdad339464d1eb617826583 (patch) | |
tree | cb2e4e7d94aa38cfe096c118938f5b92cf462a5c /internal.h | |
parent | 95867280ab72ce6ade22f2cf7fcbc5b47b6cc95d (diff) |
qfunc: disentangle the API from the global solver API
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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); |