Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ if(DEFINED TEMPEST_NOREGEX)
add_compile_definitions(TEMPEST_NOREGEX)
endif()

option(STITCHBLOBS_MPI_DEBUG "Enable StitchBlobs MPI debug helpers" OFF)


if(WIN32)
add_compile_definitions(_USE_MATH_DEFINES 1)
endif()
Expand Down
5 changes: 5 additions & 0 deletions quick_make_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ INSTALL_PREFIX="" # Specify the installation directory.
# If left blank, it defaults to the project root (TEMPEST_EXTREMES_SOURCE_DIR)
# and final executables will be installed in TEMPEST_EXTREMES_SOURCE_DIR/bin.

# Developer Configuration Options
STITCHBLOBS_MPI_DEBUG="OFF" # "ON" or "OFF" (enables extra MPI debug helpers in StitchBlobs)


./remove_depend.sh


Expand Down Expand Up @@ -123,6 +127,7 @@ cmake_args=(
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}"
-DCMAKE_CXX_FLAGS_DEBUG="${OPTIMIZATION_LEVEL} ${DEBUG_FLAGS}"
-DENABLE_MPI="${ENABLE_MPI}"
-DSTITCHBLOBS_MPI_DEBUG="${STITCHBLOBS_MPI_DEBUG}"
-DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}"
)

Expand Down
9 changes: 9 additions & 0 deletions src/blobs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ list(APPEND PERSISTENT_BLOBS_FILES

list(APPEND STITCH_BLOBS_FILES
StitchBlobs.cpp
StitchBlobsMPIUtilities.h
)


include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../base
Expand All @@ -40,6 +42,13 @@ target_link_libraries(PersistentBlobs PUBLIC extremesbase netcdf_c++ ${MPI_CXX_L
add_executable(StitchBlobs ${STITCH_BLOBS_FILES})
target_link_libraries(StitchBlobs PUBLIC extremesbase netcdf_c++ ${MPI_CXX_LIBRARIES})

if(STITCHBLOBS_MPI_DEBUG)
target_compile_definitions(StitchBlobs PRIVATE STITCHBLOBS_MPI_DEBUG=1)
else()
target_compile_definitions(StitchBlobs PRIVATE STITCHBLOBS_MPI_DEBUG=0)
endif()


# Install executables to the "bin" directory under the installation prefix.
install(
TARGETS BlobStats DetectBlobs PersistentBlobs StitchBlobs
Expand Down
Loading