Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum Number of Aboria Variables #40

Open
JabirSS opened this issue Oct 23, 2018 · 1 comment
Open

Maximum Number of Aboria Variables #40

JabirSS opened this issue Oct 23, 2018 · 1 comment
Assignees
Labels
documentation more documentation needed

Comments

@JabirSS
Copy link

JabirSS commented Oct 23, 2018

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
Copy link
Collaborator

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.

@martinjrobins martinjrobins self-assigned this Oct 23, 2018
@martinjrobins martinjrobins added the documentation more documentation needed label Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation more documentation needed
Projects
None yet
Development

No branches or pull requests

2 participants