]> https://gitweb.dealii.org/ - candi.git/commitdiff
new global option: USE_64_BIT_INDICES
authorTimo Heister <timo.heister@gmail.com>
Sun, 15 May 2022 15:56:42 +0000 (11:56 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 15 May 2022 15:56:42 +0000 (11:56 -0400)
candi.cfg
deal.II-toolchain/packages/dealii.package
deal.II-toolchain/packages/petsc.package

index 321dab348ebe73759b5a7c1ad8618751ed2c44c7..bb5a80bca26a1dcca26a20c7829e9e886a053d3e 100644 (file)
--- a/candi.cfg
+++ b/candi.cfg
@@ -33,6 +33,9 @@ DEAL_II_CONFOPTS=""
 # Option {ON|OFF}: Enable machine-specific optimizations (e.g. -march=native)?
 NATIVE_OPTIMIZATIONS=OFF
 
+# Option {ON|OFF}: Enable 64-bit indices for large computations?
+USE_64_BIT_INDICES=OFF
+
 # Option {ON|OFF}: Enable building of dealii examples?
 BUILD_EXAMPLES=ON
 
index fc96fa49d736b2b60feeba53ff2339d6478bf203..9be7da7b81de2fb03660bcefdaddfed62a422103 100644 (file)
@@ -42,6 +42,11 @@ if [ ${NATIVE_OPTIMIZATIONS} = ON ]; then
       -D CMAKE_CXX_FLAGS_RELEASE='-O3'"
 fi
 
+if [ ${USE_64_BIT_INDICES} = ON ]; then
+    CONFOPTS="${CONFOPTS} \
+      -D DEAL_II_WITH_64BIT_INDICES=ON"
+fi
+
 if [ ${USE_DEAL_II_CMAKE_MPI_COMPILER} = ON ]; then
     # Disable CXX, CC for deal.II as recommended in
     # https://github.com/dealii/dealii/issues/11478 and set MPI_*_COMPILER
index b594ee2b330529188f733ace48119fc9b92086a8..bdcd5cbb501c9988b508d95c9925ae31c08f9ae8 100644 (file)
@@ -29,12 +29,19 @@ INSTALL_PATH=${INSTALL_PATH}/${EXTRACTSTO}
 
 ################################################################################
 
+with64bit=0
+if [ ${USE_64_BIT_INDICES} = ON ]; then
+    with64bit=1
+else
+    with64bit=0
+fi
+
 CONFOPTS="\
   --with-debugging=0 \
   --with-shared-libraries=1 \
   --with-mpi=1 \
   --with-x=0 \
-  --with-64-bit-indices=0"
+  --with-64-bit-indices=$(with64bit}"
 
 if [ ${NATIVE_OPTIMIZATIONS} = ON ]; then
     CONFOPTS="${CONFOPTS} \

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.