-
Notifications
You must be signed in to change notification settings - Fork 291
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
NetCFD and ExodusII incompatibility #4050
Comments
This definitely looks like an issue to me; I'm not sure why we have not encountered it previously. There is a variable being defined on line 1773 of ex_utils.c:
which has the exact same name as a netcdf define set on Line 332 in netcdf.h:
So, a very simple thing to try would be to just comment out that line of ex_utils.c and see if the error goes away. Another possible fix would be to configure with @roystgnr it looks like contrib/exodus/v8.11 is just a normal directory and not a submodule... are we patching that locally or do you think it would be better to go find whatever the next 8.xx release version of Exodus is and try updating to that? The latter definitely sounds like more work, but I don't like the idea of forking v8.11 either... |
When I looked into it, it looked like it only was triggering in cases where NetCDF is configured to define I love the idea of bringing in Exodus as a git submodule, but I'm not sure how to make it work. The first catch is that we use our own |
When building version 5a56603 of libMesh, I get the following error:
../../../../../contrib/exodusii/v8.11/exodus/src/ex_utils.c:1773:19: error: expected identifier or '(' const int NC_SZIP_NN = 32; /* Selects nearest neighbor coding method for szip. */ ^ ../../../../../contrib/netcdf/netcdf-c/include/netcdf.h:332:20: note: expanded from macro 'NC_SZIP_NN' #define NC_SZIP_NN 32 /**< SZIP NN option mask. */ ^ 1 error generated. make[2]: *** [Makefile:11115: src/libdbg_la-ex_utils.lo] Error 1 make[2]: Leaving directory '/Users/behnpa/projects/libmesh/build/contrib/exodusii/v8.11/exodus' make[1]: *** [Makefile:1056: all-recursive] Error 1 make[1]: Leaving directory '/Users/behnpa/projects/libmesh/build/contrib' make: *** [Makefile:34349: all-recursive] Error 1
I configured using
../configure --with-methods="opt devel dbg" --prefix=/Users/behnpa/projects/libmesh/installed --enable-silent-rules --enable-unique-id --disable-warnings --enable-openmp --disable-maintainer-mode --enable-paranoid-warnings --enable-werror --enable-everything --disable-strict-lgpl --enable-hdf5 --enable-hdf5-required --enable-netcdf=v492
The text was updated successfully, but these errors were encountered: