From 987a7e3734e52c707bbfb7e56ae504398993854f Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 1 Jun 2013 01:10:38 +0000 Subject: [PATCH] Add DEAL_II_WITH_64BIT_INDICES to the list of variables that are cached. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29715 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_cached_variables.cmake | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/deal.II/cmake/setup_cached_variables.cmake b/deal.II/cmake/setup_cached_variables.cmake index 2216232956..f368c3425d 100644 --- a/deal.II/cmake/setup_cached_variables.cmake +++ b/deal.II/cmake/setup_cached_variables.cmake @@ -42,6 +42,7 @@ # DEAL_II_SHARED_LINKER_FLAGS_DEBUG # DEAL_II_CXX_FLAGS_RELEASE # DEAL_II_SHARED_LINKER_FLAGS_RELEASE +# DEAL_II_WITH_64BIT_INDICES # # *) May also be set via environment variable (CFLAGS, CXXFLAGS, LDFLAGS) # (nonempty cached variable has precedence will not be overwritten by @@ -236,6 +237,15 @@ FOREACH(_flag ${DEAL_II_USED_FLAGS}) MARK_AS_ADVANCED(${_flag}) ENDFOREACH() +SET(DEAL_II_WITH_64BIT_INDICES "${DEAL_II_WITH_64BIT_INDICES}" CACHE BOOL + "If set to ON, then use 64-bit data types to represent global degree of freedom indices. The default is to OFF. You only want to set this to ON if you will solve problems with more than 2^31 (approximately 2 billion) unknowns. If set to ON, you also need to ensure that both Trilinos and/or PETSc support 64-bit indices." + ) + +SET(DEAL_II_WITH_64BIT_INDICES_SAVED "${DEAL_II_WITH_64BIT_INDICES}") +MARK_AS_ADVANCED(DEAL_II_WITH_64BIT_INDICES) + + + # # Finally, read in CFLAGS, CXXFLAGS and LDFLAGS from environment and # prepend them to the saved variables: @@ -250,7 +260,7 @@ UNSET(ENV{LDFLAGS}) ########################################################################### # # -# Miscellanious setup: # +# Miscellaneous setup: # # # ########################################################################### -- 2.39.5