Moertel: examples require exodus; fail in builds with TPL_ENABLE_Netcdf = off
Created by: kddevin
@trilinos/moertel
Two moertel examples fail to build when TPL_ENABLE_Netcdf = off (thus, SEACASExodus is disabled). Here are the compiler errors:
In file included from /tmp/tmp/Trilinos_cdash/packages/moertel/example/TwoSquares/TwoSquares.cpp:67:0:
/tmp/tmp/Trilinos_cdash/packages/moertel/example/TwoSquares/../ExodusInterface.h:56:22: fatal error: exodusII.h: No such file or directory
#include "exodusII.h"
^
compilation terminated.
In file included from /tmp/tmp/Trilinos_cdash/packages/moertel/example/Hex3D/Hex_3D.cpp:67:0:
/tmp/tmp/Trilinos_cdash/packages/moertel/example/Hex3D/../ExodusInterface.h:56:22: fatal error: exodusII.h: No such file or directory
#include "exodusII.h"
I think the CMakeLists.txt files for these examples need guards that disable them when SEACASExodus is OFF.
Motivation and Context
I am trying to reproduce nightly tests on a system without netcdf. This issue does not block my work; I will just disable Moertel.
Your Environment
cmake \
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-DTrilinos_WARNINGS_AS_ERRORS_FLAGS:STRING= \
-DTrilinos_ALLOW_NO_PACKAGES:BOOL=ON \
-DTrilinos_DISABLE_ENABLED_FORWARD_DEP_PACKAGES=ON \
-DTrilinos_DEPS_XML_OUTPUT_FILE:FILEPATH= \
-DTrilinos_ENABLE_SECONDARY_TESTED_CODE:BOOL=ON \
-DTrilinos_IGNORE_MISSING_EXTRA_REPOSITORIES:BOOL=ON \
-DTrilinos_ENABLE_KNOWN_EXTERNAL_REPOS_TYPE:STRING=None \
-DTrilinos_ENABLE_ALL_PACKAGES=ON \
-DTrilinos_ENABLE_PyTrilinos=OFF \
-DTrilinos_ENABLE_TriKota=OFF \
-DTrilinos_ENABLE_Optika=OFF \
-DTrilinos_ENABLE_TESTS:BOOL=ON \
-DTrilinos_PRE_REPOSITORIES='' \
-DTrilinos_EXTRA_REPOSITORIES='' \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DTrilinos_ENABLE_DEPENDENCY_UNIT_TESTS:BOOL=OFF \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DTrilinos_ENABLE_CXX11=ON \
-DTPL_ENABLE_X11=OFF \
-DTrilinos_CXX11_FLAGS:STRING=--std=c++11 \
-DTPL_ENABLE_BLAS:BOOL=ON \
-DTPL_ENABLE_LAPACK:BOOL=ON \
-DCMAKE_CXX_COMPILER:FILEPATH=g++ \
-DCMAKE_C_COMPILER:FILEPATH=gcc \
-DCMAKE_Fortran_COMPILER:FILEPATH=gfortran \
-DTrilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
-DTPL_ENABLE_SuperLU:BOOL=OFF \
-DTPL_ENABLE_Netcdf:BOOL=OFF \
-DTPL_ENABLE_HDF5:BOOL=OFF \
-DTPL_ENABLE_Boost:BOOL=OFF \
-DTPL_ENABLE_BoostLib:BOOL=OFF \
-DTPL_ENABLE_Zlib:BOOL=OFF \
-DMueLu_INST_DOUBLE_INT_LONGINT:BOOL=ON \
-DTPL_ENABLE_Matio:BOOL=OFF \
-DAnasazi_Epetra_ModalSolversTester_MPI_4_DISABLE:BOOL=ON \
-DAnasazi_Epetra_OrthoManagerGenTester_0_MPI_4_DISABLE:BOOL=ON \
-DAnasazi_Epetra_OrthoManagerGenTester_1_MPI_4_DISABLE:BOOL=ON \
.. |& tee OUTPUT.CMAKE