Closed mariavd closed 6 years ago
It's an issue with the option -DXC_MAX_ORDER=1
passed to CMake. From looking at the source, it really seems that the minimal value for that option is 3. However, if one just wants to always just calculate first functional derivatives, that should work. A quick fix would be to not set XC_MAX_ODER
at all to the setup
script and work with defaults. @bast @uekstrom do you have a better fix?
I would put in #if XC_MAX_ORDER < 3 #define ...=3 (sorry writing on my phone) for robustness, but the result is the same as your solution Roberto.
Regards Ulf
On Thu, 26 Oct 2017 at 16:32, Roberto Di Remigio notifications@github.com wrote:
It's an issue with the option -DXC_MAX_ORDER=1 passed to CMake. From looking at the source, it really seems that the minimal value for that option is 3. However, if one just wants to always just calculate first functional derivatives, that should work. A quick fix would be to not set XC_MAX_ODER at all to the setup script and work with defaults. @bast https://github.com/bast @uekstrom https://github.com/uekstrom do you have a better fix?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dftlibs/xcfun/issues/28#issuecomment-339685586, or mute the thread https://github.com/notifications/unsubscribe-auth/AMeumR4ASdz2Ez5beObM0PpyStUKEVrTks5swJfkgaJpZM4QHMVC .
This can be enforced at the CMake level, without fiddling with the source code at all. I was just wondering whether XC_MAX_ORDER=1
(or 2) would make sense.
I think that would mess up the api, it’s better to always go up to third order. The code size is not very extreme anyway.
Ulf
On Thu, 26 Oct 2017 at 19:50, Roberto Di Remigio notifications@github.com wrote:
This can be enforced at the CMake level, without fiddling with the source code at all. I was just wondering whether XC_MAX_ORDER=1 (or 2) would make sense.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dftlibs/xcfun/issues/28#issuecomment-339745829, or mute the thread https://github.com/notifications/unsubscribe-auth/AMeumfpR97prd8WiX23nVezqstTeHxlvks5swMZXgaJpZM4QHMVC .
Cool I'll patch it up and submit a PR.
It seems that I misunderstood some tips I had received. Thank you for the responses.
From: Roberto Di Remigio notifications@github.com Sent: 26 October 2017 20:50:15 To: dftlibs/xcfun Cc: Dimitrova, Maria; Author Subject: Re: [dftlibs/xcfun] ‘const struct functional_data’ has no member named ‘fp2’ (#28)
This can be enforced at the CMake level, without fiddling with the source code at all. I was just wondering whether XC_MAX_ORDER=1 (or 2) would make sense.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/dftlibs/xcfun/issues/28#issuecomment-339745829, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXbdaYINC_eU2dDbJ0hTnpnkLDkS0LFTks5swMZXgaJpZM4QHMVC.
Thanks to Roberto for fixing this. Closing the issue.
Hello,
What can cause the error in the title?
I ran setup on 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux as
Then from the
build
directory: