# The user has to know the location of the mpi headers as well:
LIST(APPEND DEAL_II_USER_INCLUDE_DIRS ${MPI_CXX_INCLUDE_PATH})
- # TODO: Set up the rest:
- #MPI_CXX_COMPILER MPI Compiler wrapper for CXX
- #MPIEXEC Executable for running MPI programs
- #MPIEXEC_NUMPROC_FLAG Flag to pass to MPIEXEC before giving it the number of processors to run on
- #MPIEXEC_PREFLAGS Flags to pass to MPIEXEC directly before the executable to run.
- #MPIEXEC_POSTFLAGS Flags to pass to MPIEXEC after other flags
+ SET(DEAL_II_SET_MPI_COMPILER ON CACHE BOOL
+ "Set compiler to the detected mpi wrapper"
+ )
+ MARK_AS_ADVANCED(DEAL_II_SET_MPI_COMPILER)
+
+ IF(DEAL_II_SET_MPI_COMPILER)
+ SET(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER})
+ SET(CMAKE_C_COMPILER ${MPI_C_COMPILER})
+ ENDIF()
SET(DEAL_II_COMPILER_SUPPORTS_MPI TRUE)
ENDIF()
SET(DEAL_II_EXPAND_PETSC_VECTOR "PETScWrappers::Vector")
- SET(DEAL_II_EXPAND_PETSC_MPI_VECTOR "PETScWrappers::MPI::Vector")
SET(DEAL_II_EXPAND_PETSC_BLOCKVECTOR "PETScWrappers::BlockVector")
- SET(DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR "PETScWrappers::MPI::BlockVector")
+
+ IF(DEAL_II_WITH_MPI)
+ SET(DEAL_II_EXPAND_PETSC_MPI_VECTOR "PETScWrappers::MPI::Vector")
+ SET(DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR "PETScWrappers::MPI::BlockVector")
+ ENDIF()
SET(${var} TRUE)
ENDMACRO()
SET(DEAL_II_USE_TRILINOS TRUE)
SET(DEAL_II_EXPAND_TRILINOS_VECTOR "TrilinosWrappers::Vector")
- SET(DEAL_II_EXPAND_TRILINOS_MPI_VECTOR "TrilinosWrappers::MPI::Vector")
SET(DEAL_II_EXPAND_TRILINOS_BLOCKVECTOR "TrilinosWrappers::BlockVector")
- SET(DEAL_II_EXPAND_TRILINOS_MPI_BLOCKVECTOR "TrilinosWrappers::MPI::BlockVector")
SET(DEAL_II_EXPAND_TRILINOS_SPARSITY_PATTERN "TrilinosWrappers::SparsityPattern")
SET(DEAL_II_EXPAND_TRILINOS_BLOCK_SPARSITY_PATTERN "TrilinosWrappers::BlockSparsityPattern")
+ IF(DEAL_II_WITH_MPI)
+ SET(DEAL_II_EXPAND_TRILINOS_MPI_BLOCKVECTOR "TrilinosWrappers::MPI::BlockVector")
+ SET(DEAL_II_EXPAND_TRILINOS_MPI_VECTOR "TrilinosWrappers::MPI::Vector")
+ ENDIF()
+
#
# used with -W -Wall (which includes -Wunused). Regrettable
#
FOREACH(flags ${deal_ii_used_flags})
SET(${flags} "${${flags}} ${${flags}_SAVED}")
+ #
+ # Strip leading and trailing whitespace:
+ #
+ STRING(STRIP "${flags}" flags)
ENDFOREACH()
CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}
CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} on platform ${CMAKE_SYSTEM_NAME}
+ ${CMAKE_CXX_COMPILER}
Compiler flags used for this build:
CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
MESSAGE("
The contrib UMFPACK library will be compiled with the following C compiler:
CMAKE_C_COMPILER: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}
+ ${CMAKE_C_COMPILER}
CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")
IF(CMAKE_BUILD_TYPE MATCHES "Release")
MESSAGE(" DEAL_II_C_FLAGS_RELEASE: ${DEAL_II_C_FLAGS_RELEASE}")
SET(DEAL_II_LINKER "${CMAKE_LINKER}")
SET(DEAL_II_AR "${CMAKE_AR}")
-
#
# Information on where to find the deal.II libraries and headers
#
}
-for (V: EXTERNAL_DISTRIBUTED_VECTORS)
+for (V: EXTERNAL_PARALLEL_VECTORS)
{
template void ConstraintMatrix::set_zero<V >(V&) const;
}