From 6ef1adb60fc2b81d8c8d63c97da4c1f4651900d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Sun, 17 Dec 2017 16:44:45 +0000 Subject: [PATCH] Header cleanup, konvence Former-commit-id: 8920ff072be831d081599e0237f4e6a39b3ec659 --- qpms/konvence | 7 +++++++ qpms/translations.h | 8 -------- qpms/vswf.h | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 qpms/konvence create mode 100644 qpms/vswf.h diff --git a/qpms/konvence b/qpms/konvence new file mode 100644 index 0000000..b399eb8 --- /dev/null +++ b/qpms/konvence @@ -0,0 +1,7 @@ +Konvence pro názvy alokačních, dealokačních aj. funkcí a "getrů" + +NÁZEV_t: identifikátor typu +NÁZEV_free(NÁZEV_t) +NÁZEV_pfree(NÁZEV_t*) +NÁZEV_get_CO(const NÁZEV_t*, const ...): získej nějakou hodnotu (triviality lze přímo) + diff --git a/qpms/translations.h b/qpms/translations.h index 61202ec..f63a288 100644 --- a/qpms/translations.h +++ b/qpms/translations.h @@ -25,14 +25,6 @@ complex double qpms_trans_single_A_Taylor_ext(int m, int n, int mu, int nu, doub complex double qpms_trans_single_B_Taylor_ext(int m, int n, int mu, int nu, double kdlj_r, double kdlj_th, double kdlj_phi, int r_ge_d, int J); -// Electric wave N; NI -complex double qpms_vswf_single_el(int m, int n, sph_t kdlj, - qpms_bessel_t btyp, qpms_normalization_t norm); -// Magnetic wave M; NI -complex double qpms_vswf_single_mg(int m, int n, sph_t kdlj, - qpms_bessel_t btyp, qpms_normalization_t norm); - - typedef struct qpms_trans_calculator { int lMax; size_t nelem; diff --git a/qpms/vswf.h b/qpms/vswf.h new file mode 100644 index 0000000..abea6e1 --- /dev/null +++ b/qpms/vswf.h @@ -0,0 +1,16 @@ +#ifndef QPMS_VSWF_H +#define QPMS_VSWF_H +#include "qpms_types.h" + +// array of pi, tau auxillary function (see [1,(37)]) +// TODO put this elsewhere (no need +typedef struct { + //qpms_normalization_t norm; + //qpms_l_t lMax; + qpms_y_t nelem; + double *pi, *tau; +} qpms_pitau_t; +void qpms_pitau_t_free(qpms_pitau_t); +void qpms_pitau_t_pfree(qpms_pitau_t*); + +#endif // QPMS_VSWF_H