aboria / Aboria

Enables computations over a set of particles in N-dimensional space
https://aboria.github.io/Aboria
Other
105 stars 30 forks source link

Maximum Number of Aboria Variables #40

Open JabirSS opened 5 years ago

JabirSS commented 5 years ago

Hello @martinjrobins,

Hope you've been doing well. Thanks for the latest updates to the library and documentation! I was unable to add more than 20 Aboria variables (I think I might need 25 variables eventually) and it turns out it had to do with BOOST_MPL_LIMIT_VECTOR_SIZE's default value of 20. Adding the following two lines on top of Level1.h solved the problem:

#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
#define BOOST_MPL_LIMIT_VECTOR_SIZE 30

I guess it's a clumsy place to put them but for some reason adding them to my main file before adding Aboria.h wouldn't work.

Thought you might want to know!

cheers,

Jabir

martinjrobins commented 5 years ago

Thank you for letting me know about this @JabirSS, that is very helpful. I would like that users would be able to define these headers before including Aboria.h rather than edit Level1.h, so I will look into why the former doesn't work. Once I do I'll add this to the documentation.