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

Missing namespace when compiling against AMReX headers/libs #8

Open
jschewts opened this issue Jul 10, 2020 · 1 comment
Open

Missing namespace when compiling against AMReX headers/libs #8

jschewts opened this issue Jul 10, 2020 · 1 comment

Comments

@jschewts
Copy link

Hi,

I tried to compile AMRvis setting AMREX_HOME to point correctly to the location of my AMREX source (version from both last October and last month) and added their headers and libs to CFLAGS and LDFLAGS respectively. When trying to compile, I run into the following issue:

In file included from ./ArrayView.H(12),
from AmrVisTool.cpp(39):
./DatasetClient.H(38): error: identifier "MultiFab" is undefined
bool ArrayViewMultiFabElement(MultiFab *multifab, int element);

This seems to be the case because in the amrex headers, this class is located in the amrex namespace, while amrvis is not referring to this namespace when using MultiFab ... thus seemingly rendering this version of amrvis incompatible with the versions of amrex I used.

Is there any advice on which version of amrex to use to successfully compile amrvis?

Thanks in advance,
Jascha

@WeiqunZhang
Copy link
Member

WeiqunZhang commented Jul 10, 2020

Are you compiling with USE_ARRAYVIEW=TRUE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants