AMReX-Codes / Amrvis

Amrvis is a visualization package specifically designed to read and display output and profiling data from codes built on the AMReX framework.
https://amrex-codes.github.io/amrex/docs_html/Visualization.html
16 stars 16 forks source link

Missing namespace when compiling against AMReX headers/libs #8

Open jschewts opened 4 years ago

jschewts commented 4 years ago

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 commented 4 years ago

Are you compiling with USE_ARRAYVIEW=TRUE?