Skip to content

Commit

Permalink
CMake: fix ENABLE_PROFPARSER and ENABLE_SENSEI options (#1428)
Browse files Browse the repository at this point in the history
* CMake: fix incorrect option

* CMake: fix ENABLE_SENSEI option
  • Loading branch information
mic84 committed Oct 1, 2020
1 parent c43b88a commit 3371d52
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Docs/sphinx_documentation/source/BuildingAMReX.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ The list of available options is reported in the :ref:`table <tab:cmakevar>` bel
+------------------------------+-------------------------------------------------+-------------+-----------------+
| ENABLE_SUNDIALS | Enable SUNDIALS 4 interfaces | NO | YES, NO |
+------------------------------+-------------------------------------------------+-------------+-----------------+
| ENABLE_SENSEI_IN_SITU | Enable SENSEI_IN_SITU infrastucture | NO | YES, NO |
| ENABLE_SENSEI | Enable SENSEI_IN_SITU infrastucture | NO | YES, NO |
+------------------------------+-------------------------------------------------+-------------+-----------------+
| ENABLE_CONDUIT | Enable Conduit support | NO | YES, NO |
+------------------------------+-------------------------------------------------+-------------+-----------------+
Expand Down Expand Up @@ -666,7 +666,7 @@ A list of AMReX component names and related configure options are shown in the t
+------------------------------+-----------------+
| ENABLE_SUNDIALS | SUNDIALS |
+------------------------------+-----------------+
| ENABLE_SENSEI_IN_SITU | SENSEI |
| ENABLE_SENSEI | SENSEI |
+------------------------------+-----------------+
| ENABLE_CONDUIT | CONDUIT |
+------------------------------+-----------------+
Expand Down
2 changes: 1 addition & 1 deletion Src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if (ENABLE_PROFPARSER)
add_subdirectory(Extern/ProfParser)
endif ()

if (ENABLE_SENSEI_INSITU)
if (ENABLE_SENSEI)
add_subdirectory(Extern/SENSEI)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion Src/Extern/amrdata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ target_sources(amrex
AMReX_FABUTIL_${DIM}D.F
)

if (ENABLE_PROPARSER)
if (ENABLE_PROFPARSER)
target_sources( amrex PRIVATE AMReX_XYPlotDataList.cpp AMReX_XYPlotDataList.H )
endif ()
4 changes: 2 additions & 2 deletions Tools/CMake/AMReXConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ set(AMReX_LSOLVERS_FOUND @ENABLE_LINEAR_SOLVERS@)
set(AMReX_AMRDATA_FOUND @ENABLE_AMRDATA@)
set(AMReX_PARTICLES_FOUND @ENABLE_PARTICLES@)
set(AMReX_DPARTICLES_FOUND @ENABLE_DP_PARTICLES@)
set(AMReX_SENSEI_FOUND @ENABLE_SENSEI_INSITU@)
set(AMReX_SENSEI_FOUND @ENABLE_SENSEI@)
set(AMReX_CONDUIT_FOUND @ENABLE_CONDUIT@)
set(AMReX_SUNDIALS_FOUND @ENABLE_SUNDIALS@)
set(AMReX_ASCENT_FOUND @ENABLE_ASCENT@)
Expand Down Expand Up @@ -100,7 +100,7 @@ endif ()
#
# Third party libraries
#
if (@ENABLE_SENSEI_INSITU@)
if (@ENABLE_SENSEI@)
find_dependency(SENSEI REQUIRED)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion Tools/CMake/AMReXThirdPartyLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif ()
#
# Sensei
#
if (ENABLE_SENSEI_INSITU)
if (ENABLE_SENSEI)
find_package(SENSEI REQUIRED)
target_link_libraries( amrex PUBLIC sensei )
endif ()
Expand Down
2 changes: 1 addition & 1 deletion Tools/CMake/AMReX_Defines.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function ( set_amrex_defines )
endif ()

# SENSEI Insitu -- only legacy
add_amrex_define( BL_USE_SENSEI_INSITU IF ENABLE_SENSEI_INSITU )
add_amrex_define( BL_USE_SENSEI_INSITU IF ENABLE_SENSEI )

# Conduit Support
add_amrex_define( AMREX_USE_CONDUIT NO_LEGACY IF ENABLE_CONDUIT )
Expand Down
4 changes: 2 additions & 2 deletions Tools/CMake/AMReX_Options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ print_option( ENABLE_DP_PARTICLES )
#

# sensei
option( ENABLE_SENSEI_INSITU "Enable SENSEI in situ infrastructure" OFF )
print_option( ENABLE_SENSEI_INSITU )
option( ENABLE_SENSEI "Enable SENSEI in situ infrastructure" OFF )
print_option( ENABLE_SENSEI )

# Conduit (requires CONDUIT_DIR)
option( ENABLE_CONDUIT "Enable Conduit support" OFF )
Expand Down

0 comments on commit 3371d52

Please sign in to comment.