Fixes in less used functions

Former-commit-id: c90e785fd2f7a1672447d4d3136ce7c443dc1b8e
This commit is contained in:
Marek Nečada 2018-05-11 19:13:02 +00:00
parent e55847425a
commit 9bf0736dd4
1 changed files with 2 additions and 2 deletions

View File

@ -920,7 +920,7 @@ complex double qpms_trans_calculator_get_A_buf(const qpms_trans_calculator *c,
// TODO warn? // TODO warn?
return NAN+I*NAN; return NAN+I*NAN;
int csphase = qpms_normalisation_t_csphase(c->normalisation); int csphase = qpms_normalisation_t_csphase(c->normalisation);
switch(c->normalisation) { switch(qpms_normalisation_t_normonly(c->normalisation)) {
// TODO use normalised legendre functions for Taylor and Kristensson // TODO use normalised legendre functions for Taylor and Kristensson
case QPMS_NORMALISATION_TAYLOR: case QPMS_NORMALISATION_TAYLOR:
case QPMS_NORMALISATION_KRISTENSSON: case QPMS_NORMALISATION_KRISTENSSON:
@ -973,7 +973,7 @@ complex double qpms_trans_calculator_get_B_buf(const qpms_trans_calculator *c,
// TODO warn? // TODO warn?
return NAN+I*NAN; return NAN+I*NAN;
int csphase = qpms_normalisation_t_csphase(c->normalisation); int csphase = qpms_normalisation_t_csphase(c->normalisation);
switch(c->normalisation) { switch(qpms_normalisation_t_normonly(c->normalisation)) {
case QPMS_NORMALISATION_TAYLOR: case QPMS_NORMALISATION_TAYLOR:
case QPMS_NORMALISATION_KRISTENSSON: case QPMS_NORMALISATION_KRISTENSSON:
case QPMS_NORMALISATION_NONE: case QPMS_NORMALISATION_NONE: