teuben / nemo

a Stellar Dynamics Toolbox (Not Everybody Must Observe)
https://astronemo.readthedocs.io
GNU General Public License v2.0
57 stars 42 forks source link

s2s in falcON fails for gcc-11 #84

Open teuben opened 2 years ago

teuben commented 2 years ago

As seen on ubuntu 21.10:

    s2s p1024.in p1024.out3 filter='i<#0' params=512

fails with

falcON Error: bodyfunc::bodyfunc(): could not compile expression; perhaps it contains a syntax error

teuben commented 2 years ago

deja vu on this.... was this due to otf compilation wasn't the same as the one via the makedefs/Makefile ?

teuben commented 2 years ago

voila, the default is now -std=c++17, and it seems falcON needs -std=c++14 or below. I've decided on c++11, since code was developed as late as 2011. See code fix in falcON/src/public/lib/bodyfunc.cc where this is now hardcoded to be c++11.

teuben commented 2 years ago

See also #56