Skip to content

Commit f848868

Browse files
committed
AL: 1. Ported COOLFluiD to use long long int.
2. Updated installation script to include --int64 flag for installing PETSC using long long int. 3. Updated prepare.pl script to include with_longint flag to compile with long ints. 4. Compilation is now successfull but the code does not run, at least with OPENMPI, (partitioning problems) if long int are enabled.
1 parent 934bc90 commit f848868

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+715
-702
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ LOG ( " CUDA compiler : [${CMAKE_CUDA_COMPILER}]")
430430
LOG ( " CUDA flags : [${CMAKE_CUDA_FLAGS} ${CMAKE_CUDA_FLAGS_${CMAKE_BUILD_TYPE}}]")
431431
ENDIF()
432432
LOG ( " Shared Linker flags : [${CMAKE_SHARED_LINKER_FLAGS}]")
433-
434433
LOG ( "---------------------------------------------------------" )
435434
LOG ( " MPI : [${CF_HAVE_MPI}]" )
436435
IF(CF_HAVE_MPI)
@@ -446,6 +445,7 @@ LOG ( " Assertions : [${CF_ENABLE_ASSERTIONS}]")
446445
LOG ( " Tracing : [${CF_ENABLE_TRACE}]")
447446
LOG ( " Static libs : [${CF_ENABLE_STATIC}]")
448447
LOG ( " Profiling : [${CF_ENABLE_PROFILING}]")
448+
LOG ( " long unsigned int : [${CF_HAVE_LONG}]")
449449
LOG ( " CURL enabled : [${CF_ENABLE_CURL}]")
450450
LOG ( " CUDA enabled : [${CF_ENABLE_CUDA}]")
451451
IF(CF_ENABLE_PROFILING)

cmake/DefineGlobalOptions.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ IF ( NOT CF_ENABLE_ASSERTIONS)
88
ADD_DEFINITIONS(-DNDEBUG)
99
ENDIF ()
1010

11+
# use of long unsigned integers
12+
IF( CF_ENABLE_LONG )
13+
OPTION(CF_HAVE_LONG "CFuint is set to long unsigned int" ON )
14+
ELSE ()
15+
OPTION(CF_HAVE_LONG "CFuint is set to long unsigned int" OFF )
16+
ENDIF()
17+
1118
# precision real numbers
1219
IF ( NOT CF_PRECISION_SINGLE )
1320
OPTION(CF_PRECISION_SINGLE "Real numbers have single precision" OFF )

config/coolfluid_config.h.in

+1
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@
9393
#endif
9494
#endif
9595

96+
#cmakedefine CF_HAVE_LONG // long unsigned int support
9697

9798
#endif // !COOLFluiD_CFconfig_hh

0 commit comments

Comments
 (0)