spat_to_SH_ml() doesn't work

Issue #15 resolved
Former user created an issue

Hello,

I tried to add the function into the test code. However, when I debug the codes, "((pf2ml)shtns->ftable[SHT_M][SHT_TYP_SAN])(shtns, im, Vr, Qlm, ltr);" cannot find the implementation codes.

Is the function realized or not? Thank you very much!

Best, Yue

Comments (8)

  1. Nathanaël Schaeffer repo owner

    spat_to_SH_ml() works well on my system. Could you explain more what you are trying to do ?

  2. Former user Account Deleted

    Thank you very much for your prompt reply, Nathanael.

    I am trying to find Legendre transform implementation for my application. are you using the version of shtns-2.6-r507.tar.gz or the latest one? I have test the functions of spat_to_SH() and spat_to_SH_l(). In "ftable[][]", they can find specific implementation codes. However, for spat_to_SH_ml(), in "ftable[][]", the address is "0x00". Do I need to specify some parameters when compiling the codes?

    In addition, for spat_to_SH_ml(), you didn't provide more details about the variables. Is "Vr" an array? How about "Qlm"?

    Thank you very much.

  3. Nathanaël Schaeffer repo owner

    I really don't understand what you are doing. What is your platform ? compiler ? Please also post a code snippet.

    Have you initialized the library with shtns_init() ?

    The arguments to spat_to_SH_ml() are the same as the one of spat_to_SH(), with the additional im (order) and ltr (maximum degree of truncation). Please look at the example to see how to use spat_to_SH(), and do something similar for spat_to_SH_ml()

    It does not seem to be a bug, so please contact me using private message for help (click on my name on top of this comment).

  4. Nathanaël Schaeffer repo owner
    • changed status to open

    So it appears that spat_to_SH_ml() only works with on-the-fly transforms. The problem will be fixed soon.

  5. Log in to comment