#
# Check for modules.
#
- FOREACH(_optional_module EpetraExt ROL Sacado Tpetra MueLu Zoltan)
+ FOREACH(_optional_module EpetraExt MueLu ROL Sacado SEACAS Tpetra Zoltan)
ITEM_MATCHES(_module_found ${_optional_module} ${Trilinos_PACKAGE_LIST})
IF(_module_found)
MESSAGE(STATUS "Found ${_optional_module}")
ENDIF()
ENDIF()
+ # the only thing we use from SEACAS right now is ExodusII, so just check
+ # that it works
+ IF(${DEAL_II_TRILINOS_WITH_SEACAS})
+ LIST(APPEND CMAKE_REQUIRED_INCLUDES ${Trilinos_INCLUDE_DIRS})
+ LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${Trilinos_LIBRARIES})
+ CHECK_CXX_SOURCE_COMPILES(
+ "
+ #include <exodusII.h>
+ int
+ main()
+ {
+ int component_word_size = sizeof(double);
+ int floating_point_word_size = 0;
+ float ex_version = 0;
+ const int ex_id = ex_open(\"test.ex\",
+ EX_READ,
+ &component_word_size,
+ &floating_point_word_size,
+ &ex_version);
+ ex_close(ex_id);
+ return 0;
+ }
+ "
+ TRILINOS_SEACAS_IS_FUNCTIONAL
+ )
+
+ RESET_CMAKE_REQUIRED()
+
+ IF(NOT TRILINOS_SEACAS_IS_FUNCTIONAL)
+ MESSAGE(
+ STATUS
+ "SEACAS was found but doesn't seem to include ExodusII. Disabling SEACAS support."
+ )
+ SET(DEAL_II_TRILINOS_WITH_SEACAS OFF)
+ ENDIF()
+ ENDIF()
+
IF(${DEAL_II_TRILINOS_WITH_SACADO})
#
# Look for Sacado_config.h - we'll query it to determine C++11 support:
<li> MueLu (optional, required for TrilinosWrappers::PreconditionAMGMueLu),
<li> ROL (optional),
<li> Sacado (optional),
+ <li> SEACAS (optional, required for GridIn::read_exodusii()),
<li> Teuchos,
<li> Tpetra (optional),
<li> Zoltan (optional).
-DTrilinos_ENABLE_Ifpack=ON \
-DTrilinos_ENABLE_AztecOO=ON \
-DTrilinos_ENABLE_Sacado=ON \
+ -DTrilinos_ENABLE_SEACAS=ON \
-DTrilinos_ENABLE_Teuchos=ON \
-DTrilinos_ENABLE_MueLu=ON \
-DTrilinos_ENABLE_ML=ON \
/* cmake/configure/configure_2_trilinos.cmake */
#cmakedefine DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD
#cmakedefine DEAL_II_TRILINOS_WITH_EPETRAEXT
+#cmakedefine DEAL_II_TRILINOS_WITH_MUELU
#cmakedefine DEAL_II_TRILINOS_WITH_ROL
#cmakedefine DEAL_II_TRILINOS_WITH_SACADO
+#cmakedefine DEAL_II_TRILINOS_WITH_SEACAS
#cmakedefine DEAL_II_TRILINOS_WITH_TPETRA
-#cmakedefine DEAL_II_TRILINOS_WITH_MUELU
#cmakedefine DEAL_II_TRILINOS_WITH_ZOLTAN