Skip to content

Commit

Permalink
shorted flags *OPENPMD_API to *OPENPMD
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Feb 23, 2024
1 parent fe80e2c commit 84673fc
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_PlotFileUtil.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <AMReX_PlotFileUtilHDF5.H>
#endif

#ifdef AMREX_USE_OPENPMD_API
#ifdef AMREX_USE_OPENPMD
#include <AMReX_PlotFileUtilOPENPMD.H>
#endif

Expand Down
2 changes: 1 addition & 1 deletion Src/Extern/openPMD-api/AMReX_PlotFileUtilOPENPMD.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <AMReX_Particles.H>
#endif

#ifdef AMREX_USE_OPENPMD_API
#ifdef AMREX_USE_OPENPMD
#include <openPMD/openPMD.hpp>
#endif

Expand Down
2 changes: 1 addition & 1 deletion Src/Extern/openPMD-api/AMReX_PlotFileUtilOPENPMD_PTLImpl.H
Original file line number Diff line number Diff line change
Expand Up @@ -654,4 +654,4 @@ namespace amrex::openpmd_api

} // namespace amrex::openpmd_api

#endif // AMREX_PLOTFILE_OPENPMD_API_H
#endif // AMREX_PLOTFILE_OPENPMD_PTLS_API_H
2 changes: 1 addition & 1 deletion Src/Extern/openPMD-api/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_amrex_define(AMREX_USE_OPENPMD_API NO_LEGACY IF AMReX_OPENPMD_API)
add_amrex_define(AMREX_USE_OPENPMD NO_LEGACY IF AMReX_OPENPMD)

foreach(D IN LISTS AMReX_SPACEDIM)

Expand Down
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ public:
#include "AMReX_ParticlesHDF5.H"
#endif

#ifdef AMREX_USE_OPENPMD_API
#ifdef AMREX_USE_OPENPMD
#include "AMReX_ParticlesOPENPMD.H"
#endif

Expand Down
2 changes: 1 addition & 1 deletion Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ else()
list(APPEND AMREX_TESTS_SUBDIRS HDF5Benchmark)
endif ()

if (AMReX_OPENPMD_API)
if (AMReX_OPENPMD)
list(APPEND AMREX_TESTS_SUBDIRS openPMDTests)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion Tests/openPMDTests/fields/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct TestField

void saveFile(char const* fname, const InputParams& inputs, const TestField& testField)
{
#ifdef AMREX_USE_OPENPMD_API
#ifdef AMREX_USE_OPENPMD
openpmd_api::InitHandler(fname);

for (int ts = 0; ts < inputs.nplotfile; ts++)
Expand Down
6 changes: 3 additions & 3 deletions Tools/CMake/AMReXConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ set(AMReX_PETSC_FOUND @AMReX_PETSC@)
set(AMReX_SUNDIALS_FOUND @AMReX_SUNDIALS@)
set(AMReX_HDF5_FOUND @AMReX_HDF5@)
set(AMReX_HDF5_ZFP_FOUND @AMReX_HDF5_ZFP@)
set(AMReX_OPENPMD_API_FOUND @AMReX_OPENPMD_API@)
set(AMReX_OPENPMD_FOUND @AMReX_OPENPMD@)

# Compilation options
set(AMReX_FPE_FOUND @AMReX_FPE@)
Expand Down Expand Up @@ -137,7 +137,7 @@ set(AMReX_HYPRE @AMReX_HYPRE@)
set(AMReX_PETSC @AMReX_PETSC@)
set(AMReX_HDF5 @AMReX_HDF5@)
set(AMReX_HDF5_ZFP @AMReX_HDF5_ZFP@)
set(AMReX_OPENPMD_API @AMReX_OPENPMD_API@)
set(AMReX_OPENPMD @AMReX_OPENPMD@)

# Compilation options
set(AMReX_FPE @AMReX_FPE@)
Expand Down Expand Up @@ -215,7 +215,7 @@ if (@AMReX_HYPRE@)
find_dependency(HYPRE 2.20.0 REQUIRED)
endif ()

if (@AMReX_OPENPMD_API@)
if (@AMReX_OPENPMD@)
find_dependency(openpmd REQUIRED)
endif ()

Expand Down
4 changes: 2 additions & 2 deletions Tools/CMake/AMReXOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ cmake_dependent_option(AMReX_HDF5_ZFP "Enable ZFP compression in HDF5-based IO"
print_option(AMReX_HDF5_ZFP)

# openPMD-api
option(AMReX_OPENPMD_API "Enable I/O through openPMD-api" OFF)
print_option(AMReX_OPENPMD_API)
option(AMReX_OPENPMD "Enable I/O through openPMD-api" OFF)
print_option(AMReX_OPENPMD)

# SUNDIALS
option( AMReX_SUNDIALS "Enable SUNDIALS interfaces" OFF )
Expand Down
2 changes: 1 addition & 1 deletion Tools/CMake/AMReXSetDefines.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ add_amrex_define(AMREX_USE_HDF5_ZFP NO_LEGACY IF AMReX_HDF5_ZFP)
#
# openPMD-api
#
add_amrex_define(AMREX_USE_OPENPMD_API NO_LEGACY IF AMReX_OPENPMD_API)
add_amrex_define(AMREX_USE_OPENPMD NO_LEGACY IF AMReX_OPENPMD)


#
Expand Down
2 changes: 1 addition & 1 deletion Tools/CMake/AMReXThirdPartyLibraries.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# openPMD_api related targets
#
if (AMReX_OPENPMD_API)
if (AMReX_OPENPMD)
if (AMReX_MPI)
find_package(openPMD 0.14.2 CONFIG REQUIRED COMPONENTS MPI)
else ()
Expand Down

0 comments on commit 84673fc

Please sign in to comment.