openPMD-api 0.17.0__tar.gz → 0.17.1.post1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/CMakeLists.txt +20 -20
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/PKG-INFO +7 -6
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/README.md +3 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/cmake/dependencies/catch.cmake +27 -5
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/cmake/dependencies/json.cmake +3 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/cmake/dependencies/pybind11.cmake +5 -5
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/cmake/dependencies/toml11.cmake +3 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Datatype.hpp +31 -45
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Datatype.tpp +51 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/macros.hpp +5 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/AbstractIOHandlerImplCommon.hpp +5 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/IOTask.hpp +1 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/InvalidatableFile.hpp +10 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Iteration.hpp +35 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/ParticleSpecies.hpp +2 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/RecordComponent.tpp +44 -24
- openpmd_api-0.17.1.post1/include/openPMD/auxiliary/Defer.hpp +60 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Filesystem.hpp +14 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/JSON_internal.hpp +4 -4
- openpmd_api-0.17.0/test/CatchMain.cpp → openpmd_api-0.17.1.post1/include/openPMD/auxiliary/toml11_wrapper.hpp +6 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/Attributable.hpp +3 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/ContainerImpl.tpp +6 -4
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/PatchRecordComponent.hpp +4 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/Numpy.hpp +55 -69
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/version.hpp +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/PKG-INFO +7 -6
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/SOURCES.txt +3 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/pyproject.toml +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/setup.py +27 -11
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/download_samples.ps1 +5 -5
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/ADIOS/ADIOS2File.cpp +16 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/ADIOS/ADIOS2IOHandler.cpp +25 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/ADIOS/ADIOS2PreloadAttributes.cpp +4 -13
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/HDF5/HDF5IOHandler.cpp +530 -369
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/InvalidatableFile.cpp +6 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/JSON/JSONIOHandlerImpl.cpp +2 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Iteration.cpp +13 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/RecordComponent.cpp +13 -15
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Series.cpp +27 -14
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/Filesystem.cpp +75 -12
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/JSON.cpp +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/Attributable.cpp +8 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Attributable.cpp +11 -3
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Iteration.cpp +18 -15
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/ParticleSpecies.cpp +6 -5
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/RecordComponent.cpp +34 -9
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Series.cpp +33 -28
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/AuxiliaryTest.cpp +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/CatchRunner.cpp +9 -19
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/CoreTest.cpp +19 -12
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_Core/CoreTests.hpp +5 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_Core/automatic_variable_encoding.cpp +1 -1
- openpmd_api-0.17.1.post1/test/Files_Core/read_nonexistent_attribute.cpp +104 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_ParallelIO/iterate_nonstreaming_series.cpp +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_ParallelIO/read_variablebased_randomaccess.cpp +2 -2
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_SerialIO/close_and_reopen_test.cpp +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_SerialIO/components_without_extent.cpp +1 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/JSONTest.cpp +2 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/ParallelIOTest.cpp +2 -1
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/SerialIOTest.cpp +7 -7
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/python/unittest/API/APITest.py +165 -6
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/COPYING +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/COPYING.LESSER +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/MANIFEST.in +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/cmake/openPMDFunctions.cmake +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/10_streaming_read.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/10_streaming_read.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/10_streaming_write.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/10_streaming_write.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/11_particle_dataframe.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/12_span_write.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/12_span_write.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/13_write_dynamic_configuration.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/13_write_dynamic_configuration.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/14_toml_template.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/15_compression.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/15_compression.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/1_structure.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/2_read_serial.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/2_read_serial.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/2a_read_thetaMode_serial.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/2a_read_thetaMode_serial.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/3_write_serial.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/3_write_serial.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/3a_write_thetaMode_serial.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/3a_write_thetaMode_serial.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/3b_write_resizable_particles.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/3b_write_resizable_particles.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/4_read_parallel.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/4_read_parallel.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/5_write_parallel.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/5_write_parallel.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/6_dump_filebased_series.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/7_extended_write_serial.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/7_extended_write_serial.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/8_benchmark_parallel.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/8a_benchmark_write_parallel.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/8b_benchmark_read_parallel.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/examples/9_particle_write_serial.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/ChunkInfo.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/ChunkInfo_internal.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Dataset.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/DatatypeHelpers.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/DatatypeMacros.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Datatype_internal.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Error.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/ADIOS2Auxiliary.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/ADIOS2File.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/ADIOS2FilePosition.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/ADIOS2IOHandler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/ADIOS2PreloadAttributes.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/ADIOS/ADIOS2PreloadVariables.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/AbstractFilePosition.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/AbstractIOHandler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/AbstractIOHandlerHelper.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/AbstractIOHandlerImpl.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/Access.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/DummyIOHandler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/FlushParametersInternal.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/Format.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/HDF5/HDF5Auxiliary.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/HDF5/HDF5FilePosition.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/HDF5/HDF5IOHandler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/HDF5/HDF5IOHandlerImpl.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/HDF5/ParallelHDF5IOHandler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/HDF5/ParallelHDF5IOHandlerImpl.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/JSON/JSONFilePosition.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/JSON/JSONIOHandler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/JSON/JSONIOHandlerImpl.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IterationEncoding.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Mesh.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/ParticlePatches.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/ReadIterations.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Record.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/RecordComponent.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Series.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Span.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/Streaming.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/ThrowError.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/UndefDatatypeMacros.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/UnitDimension.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/WriteIterations.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/BlockSlicer.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Date.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/DerefDynamicCast.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Environment.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Export.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/JSON.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/JSONMatcher.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Memory.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Memory_internal.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Mpi.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/OneDimensionalBlockSlicer.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/OutOfRangeMsg.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/ShareRaw.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/ShareRawInternal.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/StringManip.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/TypeTraits.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/UniquePtr.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/auxiliary/Variant.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/Attribute.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/BaseRecord.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/BaseRecordComponent.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/Container.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/MeshRecordComponent.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/ParsePreference.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/PatchRecord.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/Variant_internal.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/backend/Writable.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/MemoryProfiler.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/Timer.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/mpi/BlockSlicer.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/mpi/DatasetFiller.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/mpi/MPIBenchmark.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/mpi/MPIBenchmarkReport.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/mpi/OneDimensionalBlockSlicer.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/benchmark/mpi/RandomDatasetFiller.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/Common.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/Container.H +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/Mpi.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/Pickle.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/RecordComponent.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/UnitDimension.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/binding/python/auxiliary.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/cli/ls.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/config.hpp.in +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/helper/list_series.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/openPMD.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/ContainerImpls.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/ContainerTraits.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/IteratorHelpers.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/IteratorTraits.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/RandomAccessIterator.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/Snapshots.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/snapshots/StatefulIterator.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD.pc.in +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMDConfig.cmake.in +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/dependency_links.txt +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/entry_points.txt +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/not-zip-safe +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/requires.txt +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/openPMD_api.egg-info/top_level.txt +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/requirements.txt +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/setup.cfg +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/download_samples.sh +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/Makefile +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/README.md +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/attribute_defs.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/attributes.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/check.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/dataset_defs.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/iteration.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/mesh.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/mesh_record_component.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/particle_patches.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/particle_species.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/patch_record.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/record.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/record_component.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/json_schema/series.toml +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/share/openPMD/validate_files.sh +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/ChunkInfo.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Dataset.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Datatype.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Error.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Format.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/ADIOS/ADIOS2Auxiliary.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/ADIOS/ADIOS2PreloadVariables.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/AbstractIOHandler.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/AbstractIOHandlerHelper.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/AbstractIOHandlerImpl.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/Access.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/DummyIOHandler.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/FlushParams.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/HDF5/HDF5Auxiliary.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/HDF5/ParallelHDF5IOHandler.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/IOTask.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/JSON/JSONFilePosition.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IO/JSON/JSONIOHandler.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/IterationEncoding.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Mesh.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/ParticlePatches.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/ParticleSpecies.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/ReadIterations.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/Record.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/UnitDimension.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/Date.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/JSONMatcher.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/Memory.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/Mpi.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/OneDimensionalBlockSlicer.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/UniquePtr.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/auxiliary/Variant.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/Attribute.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/BaseRecord.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/BaseRecordComponent.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/Container.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/MeshRecordComponent.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/PatchRecord.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/PatchRecordComponent.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/backend/Writable.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Access.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/BaseRecordComponent.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/ChunkInfo.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Dataset.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Datatype.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Error.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Helper.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/IterationEncoding.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Mesh.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/MeshRecordComponent.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/ParticlePatches.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/PatchRecord.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/PatchRecordComponent.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/Record.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/UnitDimension.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/auxiliary.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openPMD.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/DaskArray.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/DaskDataFrame.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/DataFrame.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/__init__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/ls/__init__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/ls/__main__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/pipe/__init__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/binding/python/openpmd_api/pipe/__main__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/cli/convert-toml-json.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/cli/ls.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/cli/pipe.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/config.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/helper/list_series.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/ContainerImpls.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/ContainerTraits.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/IteratorHelpers.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/IteratorTraits.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/RandomAccessIterator.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/Snapshots.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/snapshots/StatefulIterator.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/src/version.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_ParallelIO/ParallelIOTests.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_ParallelIO/bug_1655_bp5_writer_hangup.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_SerialIO/SerialIOTests.hpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_SerialIO/filebased_write_test.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/Files_SerialIO/issue_1744_unique_ptrs_at_close_time.cpp +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/python/unittest/API/__init__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/python/unittest/Test.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/python/unittest/TestUtilities/TestUtilities.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/python/unittest/TestUtilities/__init__.py +0 -0
- {openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/test/python/unittest/__init__.py +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
cmake_minimum_required(VERSION 3.22.0)
|
|
4
4
|
|
|
5
|
-
project(openPMD VERSION 0.17.
|
|
5
|
+
project(openPMD VERSION 0.17.1) # LANGUAGES CXX
|
|
6
6
|
|
|
7
7
|
# the openPMD "markup"/"schema" standard version
|
|
8
8
|
set(openPMD_STANDARD_VERSION 1.1.0)
|
|
@@ -297,6 +297,14 @@ endif()
|
|
|
297
297
|
# The following configuration files were considered but not accepted:
|
|
298
298
|
# ../share/cmake/hdf5/hdf5-config.cmake, version: 1.10.7
|
|
299
299
|
# - thus, we do our own HDF5_VERSION check...
|
|
300
|
+
# external library: ZLIB (work-around for an upstream HDF5 packaging issue)
|
|
301
|
+
# Static build of HDF5 forget to do `find_dependency(ZLIB) in their
|
|
302
|
+
# CMake config, but expose them in INTERFACE_LINK_LIBRARIES. Thus,
|
|
303
|
+
# find_package(HDF5) fails. ZLIB is optional but usually used by HDF5.
|
|
304
|
+
if(HDF5_USE_STATIC_LIBRARIES AND NOT TARGET ZLIB::ZLIB)
|
|
305
|
+
find_package(ZLIB QUIET)
|
|
306
|
+
endif()
|
|
307
|
+
|
|
300
308
|
if(openPMD_USE_HDF5 STREQUAL AUTO)
|
|
301
309
|
set(HDF5_PREFER_PARALLEL ${openPMD_HAVE_MPI})
|
|
302
310
|
find_package(HDF5 COMPONENTS C)
|
|
@@ -525,6 +533,9 @@ if(openPMD_BUILD_TESTING)
|
|
|
525
533
|
add_library(openPMD::thirdparty::Catch2 INTERFACE IMPORTED)
|
|
526
534
|
target_link_libraries(openPMD::thirdparty::Catch2
|
|
527
535
|
INTERFACE Catch2::Catch2)
|
|
536
|
+
add_library(openPMD::thirdparty::Catch2WithMain INTERFACE IMPORTED)
|
|
537
|
+
target_link_libraries(openPMD::thirdparty::Catch2WithMain
|
|
538
|
+
INTERFACE Catch2::Catch2WithMain)
|
|
528
539
|
endif()
|
|
529
540
|
|
|
530
541
|
if(openPMD_HAVE_MPI)
|
|
@@ -770,14 +781,11 @@ if(openPMD_HAVE_PYTHON)
|
|
|
770
781
|
endif()
|
|
771
782
|
|
|
772
783
|
if(openPMD_BUILD_TESTING)
|
|
773
|
-
#
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
add_library(CatchMain ${_openpmd_lib_type}
|
|
777
|
-
test/CatchMain.cpp) # Serial only
|
|
784
|
+
# CatchRunner: custom main with MPI support for parallel tests
|
|
785
|
+
# In Catch2 v3, we link to Catch2 (not Catch2WithMain) since we provide our own main
|
|
786
|
+
add_library(CatchRunner ${_openpmd_lib_type} test/CatchRunner.cpp)
|
|
778
787
|
openpmd_cxx_required(CatchRunner)
|
|
779
|
-
|
|
780
|
-
set_target_properties(CatchRunner CatchMain PROPERTIES
|
|
788
|
+
set_target_properties(CatchRunner PROPERTIES
|
|
781
789
|
ARCHIVE_OUTPUT_DIRECTORY ${openPMD_ARCHIVE_OUTPUT_DIRECTORY}
|
|
782
790
|
LIBRARY_OUTPUT_DIRECTORY ${openPMD_LIBRARY_OUTPUT_DIRECTORY}
|
|
783
791
|
RUNTIME_OUTPUT_DIRECTORY ${openPMD_RUNTIME_OUTPUT_DIRECTORY}
|
|
@@ -788,7 +796,6 @@ if(openPMD_BUILD_TESTING)
|
|
|
788
796
|
WINDOWS_EXPORT_ALL_SYMBOLS ON
|
|
789
797
|
)
|
|
790
798
|
set_target_properties(CatchRunner PROPERTIES COMPILE_PDB_NAME CatchRunner)
|
|
791
|
-
set_target_properties(CatchMain PROPERTIES COMPILE_PDB_NAME CatchMain)
|
|
792
799
|
# note: same as above, but for Multi-Config generators
|
|
793
800
|
if(isMultiConfig)
|
|
794
801
|
foreach(CFG IN LISTS CMAKE_CONFIGURATION_TYPES)
|
|
@@ -801,20 +808,10 @@ if(openPMD_BUILD_TESTING)
|
|
|
801
808
|
PDB_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_PDB_OUTPUT_DIRECTORY}/${CFG}
|
|
802
809
|
COMPILE_PDB_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_COMPILE_PDB_OUTPUT_DIRECTORY}/${CFG}
|
|
803
810
|
)
|
|
804
|
-
set_target_properties(CatchMain PROPERTIES
|
|
805
|
-
COMPILE_PDB_NAME_${CFG_UPPER} CatchMain
|
|
806
|
-
ARCHIVE_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_ARCHIVE_OUTPUT_DIRECTORY}/${CFG}
|
|
807
|
-
LIBRARY_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_LIBRARY_OUTPUT_DIRECTORY}/${CFG}
|
|
808
|
-
RUNTIME_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_RUNTIME_OUTPUT_DIRECTORY}/${CFG}
|
|
809
|
-
PDB_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_PDB_OUTPUT_DIRECTORY}/${CFG}
|
|
810
|
-
COMPILE_PDB_OUTPUT_DIRECTORY_${CFG_UPPER} ${openPMD_COMPILE_PDB_OUTPUT_DIRECTORY}/${CFG}
|
|
811
|
-
)
|
|
812
811
|
endforeach()
|
|
813
812
|
endif()
|
|
814
813
|
target_compile_options(CatchRunner PUBLIC ${_msvc_options})
|
|
815
|
-
target_compile_options(CatchMain PUBLIC ${_msvc_options})
|
|
816
814
|
target_link_libraries(CatchRunner PUBLIC openPMD::thirdparty::Catch2)
|
|
817
|
-
target_link_libraries(CatchMain PUBLIC openPMD::thirdparty::Catch2)
|
|
818
815
|
if(openPMD_HAVE_MPI)
|
|
819
816
|
target_link_libraries(CatchRunner PUBLIC ${openPMD_MPI_TARGETS})
|
|
820
817
|
target_compile_definitions(CatchRunner PUBLIC openPMD_HAVE_MPI=1)
|
|
@@ -837,6 +834,7 @@ if(openPMD_BUILD_TESTING)
|
|
|
837
834
|
elseif(${test_name} STREQUAL "Core")
|
|
838
835
|
list(APPEND ${out_list}
|
|
839
836
|
test/Files_Core/automatic_variable_encoding.cpp
|
|
837
|
+
test/Files_Core/read_nonexistent_attribute.cpp
|
|
840
838
|
)
|
|
841
839
|
endif()
|
|
842
840
|
endmacro()
|
|
@@ -875,9 +873,11 @@ if(openPMD_BUILD_TESTING)
|
|
|
875
873
|
endif()
|
|
876
874
|
target_link_libraries(${testname}Tests PRIVATE openPMD)
|
|
877
875
|
if(${testname} MATCHES "Parallel.+$")
|
|
876
|
+
# Parallel tests use CatchRunner (custom main with MPI)
|
|
878
877
|
target_link_libraries(${testname}Tests PRIVATE CatchRunner)
|
|
879
878
|
else()
|
|
880
|
-
|
|
879
|
+
# Serial tests use Catch2WithMain (provides default main)
|
|
880
|
+
target_link_libraries(${testname}Tests PRIVATE openPMD::thirdparty::Catch2WithMain)
|
|
881
881
|
endif()
|
|
882
882
|
|
|
883
883
|
if(${testname} STREQUAL JSON)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openPMD-api
|
|
3
|
-
Version: 0.17.
|
|
3
|
+
Version: 0.17.1.post1
|
|
4
4
|
Summary: C++ & Python API for Scientific I/O with openPMD
|
|
5
5
|
Home-page: https://www.openPMD.org
|
|
6
6
|
Author: Axel Huebl, Franz Poeschel, Fabian Koller, Junmin Gu
|
|
7
7
|
Author-email: axelhuebl@lbl.gov, f.poeschel@hzdr.de
|
|
8
8
|
Maintainer: Axel Huebl
|
|
9
9
|
Maintainer-email: axelhuebl@lbl.gov
|
|
10
|
+
License: LGPL-3.0-or-later
|
|
10
11
|
Project-URL: Documentation, https://openpmd-api.readthedocs.io
|
|
11
12
|
Project-URL: Doxygen, https://www.openpmd.org/openPMD-api
|
|
12
13
|
Project-URL: Reference, https://doi.org/10.14278/rodare.27
|
|
@@ -27,11 +28,10 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
27
28
|
Classifier: Programming Language :: Python :: 3.12
|
|
28
29
|
Classifier: Programming Language :: Python :: 3.13
|
|
29
30
|
Classifier: Programming Language :: Python :: 3.14
|
|
30
|
-
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
|
|
31
31
|
Requires-Python: >=3.10
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
|
-
License-File: COPYING
|
|
34
33
|
License-File: COPYING.LESSER
|
|
34
|
+
License-File: COPYING
|
|
35
35
|
Requires-Dist: numpy>=1.15.0
|
|
36
36
|
Dynamic: author
|
|
37
37
|
Dynamic: author-email
|
|
@@ -40,6 +40,7 @@ Dynamic: description
|
|
|
40
40
|
Dynamic: description-content-type
|
|
41
41
|
Dynamic: home-page
|
|
42
42
|
Dynamic: keywords
|
|
43
|
+
Dynamic: license
|
|
43
44
|
Dynamic: license-file
|
|
44
45
|
Dynamic: maintainer
|
|
45
46
|
Dynamic: maintainer-email
|
|
@@ -354,7 +355,7 @@ export CMAKE_PREFIX_PATH=$HOME/somepath:$CMAKE_PREFIX_PATH
|
|
|
354
355
|
Use the following lines in your project's `CMakeLists.txt`:
|
|
355
356
|
```cmake
|
|
356
357
|
# supports: COMPONENTS MPI NOMPI HDF5 ADIOS2
|
|
357
|
-
find_package(openPMD 0.17.
|
|
358
|
+
find_package(openPMD 0.17.1 CONFIG)
|
|
358
359
|
|
|
359
360
|
if(openPMD_FOUND)
|
|
360
361
|
target_link_libraries(YourTarget PRIVATE openPMD::openPMD)
|
|
@@ -382,7 +383,7 @@ set(openPMD_INSTALL OFF) # or instead use:
|
|
|
382
383
|
set(openPMD_USE_PYTHON OFF)
|
|
383
384
|
FetchContent_Declare(openPMD
|
|
384
385
|
GIT_REPOSITORY "https://github.com/openPMD/openPMD-api.git"
|
|
385
|
-
GIT_TAG "0.17.
|
|
386
|
+
GIT_TAG "0.17.1")
|
|
386
387
|
FetchContent_MakeAvailable(openPMD)
|
|
387
388
|
```
|
|
388
389
|
|
|
@@ -481,7 +482,7 @@ Supported by the CAMPA collaboration, a project of the U.S. Department of Energy
|
|
|
481
482
|
Previously supported by the Consortium for Advanced Modeling of Particles Accelerators (CAMPA), funded by the U.S. DOE Office of Science under Contract No. DE-AC02-05CH11231.
|
|
482
483
|
Supported by the Exascale Computing Project (17-SC-20-SC), a collaborative effort of two U.S. Department of Energy organizations (Office of Science and the National Nuclear Security Administration).
|
|
483
484
|
This project has received funding from the European Unions Horizon 2020 research and innovation programme under grant agreement No 654220.
|
|
484
|
-
This work was partially funded by the Center
|
|
485
|
+
This work was partially funded by the Center for Advanced Systems Understanding (CASUS), which is financed by Germany's Federal Ministry of Education and Research (BMBF) and by the Saxon Ministry for Science, Culture and Tourism (SMWK) with tax funds on the basis of the budget approved by the Saxon State Parliament.
|
|
485
486
|
Supported by the HElmholtz Laser Plasma Metadata Initiative (HELPMI) project (ZT-I-PF-3-066), funded by the "Initiative and Networking Fund" of the Helmholtz Association in the framework of the "Helmholtz Metadata Collaboration" project call 2022.
|
|
486
487
|
|
|
487
488
|
### Transitive Contributions
|
|
@@ -304,7 +304,7 @@ export CMAKE_PREFIX_PATH=$HOME/somepath:$CMAKE_PREFIX_PATH
|
|
|
304
304
|
Use the following lines in your project's `CMakeLists.txt`:
|
|
305
305
|
```cmake
|
|
306
306
|
# supports: COMPONENTS MPI NOMPI HDF5 ADIOS2
|
|
307
|
-
find_package(openPMD 0.17.
|
|
307
|
+
find_package(openPMD 0.17.1 CONFIG)
|
|
308
308
|
|
|
309
309
|
if(openPMD_FOUND)
|
|
310
310
|
target_link_libraries(YourTarget PRIVATE openPMD::openPMD)
|
|
@@ -332,7 +332,7 @@ set(openPMD_INSTALL OFF) # or instead use:
|
|
|
332
332
|
set(openPMD_USE_PYTHON OFF)
|
|
333
333
|
FetchContent_Declare(openPMD
|
|
334
334
|
GIT_REPOSITORY "https://github.com/openPMD/openPMD-api.git"
|
|
335
|
-
GIT_TAG "0.17.
|
|
335
|
+
GIT_TAG "0.17.1")
|
|
336
336
|
FetchContent_MakeAvailable(openPMD)
|
|
337
337
|
```
|
|
338
338
|
|
|
@@ -431,7 +431,7 @@ Supported by the CAMPA collaboration, a project of the U.S. Department of Energy
|
|
|
431
431
|
Previously supported by the Consortium for Advanced Modeling of Particles Accelerators (CAMPA), funded by the U.S. DOE Office of Science under Contract No. DE-AC02-05CH11231.
|
|
432
432
|
Supported by the Exascale Computing Project (17-SC-20-SC), a collaborative effort of two U.S. Department of Energy organizations (Office of Science and the National Nuclear Security Administration).
|
|
433
433
|
This project has received funding from the European Unions Horizon 2020 research and innovation programme under grant agreement No 654220.
|
|
434
|
-
This work was partially funded by the Center
|
|
434
|
+
This work was partially funded by the Center for Advanced Systems Understanding (CASUS), which is financed by Germany's Federal Ministry of Education and Research (BMBF) and by the Saxon Ministry for Science, Culture and Tourism (SMWK) with tax funds on the basis of the budget approved by the Saxon State Parliament.
|
|
435
435
|
Supported by the HElmholtz Laser Plasma Metadata Initiative (HELPMI) project (ZT-I-PF-3-066), funded by the "Initiative and Networking Fund" of the Helmholtz Association in the framework of the "Helmholtz Metadata Collaboration" project call 2022.
|
|
436
436
|
|
|
437
437
|
### Transitive Contributions
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
function(catch_preconfigure)
|
|
2
|
+
set(_old_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
|
|
3
|
+
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
4
|
+
endfunction()
|
|
5
|
+
|
|
6
|
+
function(catch_postconfigure)
|
|
7
|
+
set(BUILD_SHARED_LIBS ${_old_BUILD_SHARED_LIBS})
|
|
8
|
+
unset(_old_BUILD_SHARED_LIBS)
|
|
9
|
+
# Mark Catch2 as system code to suppress warnings and set position independent code
|
|
10
|
+
# Ensure Catch2 is built with PIC so it can be linked into shared libraries
|
|
11
|
+
set_target_properties(Catch2 PROPERTIES
|
|
12
|
+
POSITION_INDEPENDENT_CODE ON
|
|
13
|
+
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "$<TARGET_PROPERTY:Catch2,INTERFACE_INCLUDE_DIRECTORIES>"
|
|
14
|
+
)
|
|
15
|
+
if(CMAKE_CXX_CLANG_TIDY)
|
|
16
|
+
set_target_properties(Catch2 PROPERTIES CXX_CLANG_TIDY "")
|
|
17
|
+
endif()
|
|
18
|
+
endfunction()
|
|
19
|
+
|
|
1
20
|
function(find_catch2)
|
|
2
21
|
if(TARGET Catch2::Catch2)
|
|
3
22
|
message(STATUS "Catch2::Catch2 target already imported")
|
|
@@ -19,8 +38,11 @@ function(find_catch2)
|
|
|
19
38
|
if(TARGET Catch2::Catch2)
|
|
20
39
|
# nothing to do, target already exists in the superbuild
|
|
21
40
|
elseif(openPMD_USE_INTERNAL_CATCH AND openPMD_catch_src)
|
|
41
|
+
catch_preconfigure()
|
|
22
42
|
add_subdirectory(${openPMD_catch_src} _deps/localCatch2-build/)
|
|
43
|
+
catch_postconfigure()
|
|
23
44
|
elseif(openPMD_USE_INTERNAL_CATCH AND (openPMD_catch_tar OR openPMD_catch_branch))
|
|
45
|
+
catch_preconfigure()
|
|
24
46
|
include(FetchContent)
|
|
25
47
|
if(openPMD_catch_tar)
|
|
26
48
|
FetchContent_Declare(fetchedCatch2
|
|
@@ -36,7 +58,7 @@ function(find_catch2)
|
|
|
36
58
|
)
|
|
37
59
|
endif()
|
|
38
60
|
FetchContent_MakeAvailable(fetchedCatch2)
|
|
39
|
-
|
|
61
|
+
catch_postconfigure()
|
|
40
62
|
# advanced fetch options
|
|
41
63
|
mark_as_advanced(FETCHCONTENT_BASE_DIR)
|
|
42
64
|
mark_as_advanced(FETCHCONTENT_FULLY_DISCONNECTED)
|
|
@@ -45,7 +67,7 @@ function(find_catch2)
|
|
|
45
67
|
mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED)
|
|
46
68
|
#mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED_FETCHEDCatch2)
|
|
47
69
|
elseif(NOT openPMD_USE_INTERNAL_CATCH)
|
|
48
|
-
find_package(Catch2
|
|
70
|
+
find_package(Catch2 3.0.0 CONFIG REQUIRED)
|
|
49
71
|
message(STATUS "Catch2: Found version '${Catch2_VERSION}'")
|
|
50
72
|
endif()
|
|
51
73
|
endfunction()
|
|
@@ -56,10 +78,10 @@ set(openPMD_catch_src ""
|
|
|
56
78
|
"Local path to Catch2 source directory (preferred if set)")
|
|
57
79
|
|
|
58
80
|
# tarball fetcher
|
|
59
|
-
set(openPMD_catch_tar "https://github.com/catchorg/Catch2/archive/refs/tags/
|
|
81
|
+
set(openPMD_catch_tar "https://github.com/catchorg/Catch2/archive/refs/tags/v3.11.0.tar.gz"
|
|
60
82
|
CACHE STRING
|
|
61
83
|
"Remote tarball link to pull and build Catch2 from if(openPMD_USE_INTERNAL_CATCH)")
|
|
62
|
-
set(openPMD_catch_tar_hash "SHA256=
|
|
84
|
+
set(openPMD_catch_tar_hash "SHA256=82fa1cb59dc28bab220935923f7469b997b259eb192fb9355db62da03c2a3137"
|
|
63
85
|
CACHE STRING
|
|
64
86
|
"Hash checksum of the tarball of Catch2 if(openPMD_USE_INTERNAL_CATCH)")
|
|
65
87
|
|
|
@@ -67,7 +89,7 @@ set(openPMD_catch_tar_hash "SHA256=d54a712b7b1d7708bc7a819a8e6e47b2fde9536f487b8
|
|
|
67
89
|
set(openPMD_catch_repo "https://github.com/catchorg/Catch2.git"
|
|
68
90
|
CACHE STRING
|
|
69
91
|
"Repository URI to pull and build Catch2 from if(openPMD_USE_INTERNAL_CATCH)")
|
|
70
|
-
set(openPMD_catch_branch "
|
|
92
|
+
set(openPMD_catch_branch "v3.11.0"
|
|
71
93
|
CACHE STRING
|
|
72
94
|
"Repository branch for openPMD_catch_repo if(openPMD_USE_INTERNAL_CATCH)")
|
|
73
95
|
|
|
@@ -56,10 +56,10 @@ set(openPMD_json_src ""
|
|
|
56
56
|
"Local path to nlohmann_json source directory (preferred if set)")
|
|
57
57
|
|
|
58
58
|
# tarball fetcher
|
|
59
|
-
set(openPMD_json_tar "https://github.com/nlohmann/json/archive/refs/tags/v3.
|
|
59
|
+
set(openPMD_json_tar "https://github.com/nlohmann/json/archive/refs/tags/v3.12.0.tar.gz"
|
|
60
60
|
CACHE STRING
|
|
61
61
|
"Remote tarball link to pull and build nlohmann_json from if(openPMD_USE_INTERNAL_JSON)")
|
|
62
|
-
set(openPMD_json_tar_hash "SHA256=
|
|
62
|
+
set(openPMD_json_tar_hash "SHA256=4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187"
|
|
63
63
|
CACHE STRING
|
|
64
64
|
"Hash checksum of the tarball of nlohmann_json if(openPMD_USE_INTERNAL_JSON)")
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ set(openPMD_json_tar_hash "SHA256=0d8ef5af7f9794e3263480193c491549b2ba6cc74bb018
|
|
|
67
67
|
set(openPMD_json_repo "https://github.com/nlohmann/json.git"
|
|
68
68
|
CACHE STRING
|
|
69
69
|
"Repository URI to pull and build nlohmann_json from if(openPMD_USE_INTERNAL_JSON)")
|
|
70
|
-
set(openPMD_json_branch "v3.
|
|
70
|
+
set(openPMD_json_branch "v3.12.0"
|
|
71
71
|
CACHE STRING
|
|
72
72
|
"Repository branch for openPMD_json_repo if(openPMD_USE_INTERNAL_JSON)")
|
|
73
73
|
|
|
@@ -51,9 +51,9 @@ function(find_pybind11)
|
|
|
51
51
|
mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED_FETCHEDpybind11)
|
|
52
52
|
elseif(NOT openPMD_USE_INTERNAL_PYBIND11)
|
|
53
53
|
if(openPMD_USE_PYTHON STREQUAL AUTO)
|
|
54
|
-
find_package(pybind11
|
|
54
|
+
find_package(pybind11 3.0.0 CONFIG)
|
|
55
55
|
elseif(openPMD_USE_PYTHON)
|
|
56
|
-
find_package(pybind11
|
|
56
|
+
find_package(pybind11 3.0.0 CONFIG REQUIRED)
|
|
57
57
|
endif()
|
|
58
58
|
if(TARGET pybind11::module)
|
|
59
59
|
message(STATUS "pybind11: Found version '${pybind11_VERSION}'")
|
|
@@ -67,10 +67,10 @@ set(openPMD_pybind11_src ""
|
|
|
67
67
|
"Local path to pybind11 source directory (preferred if set)")
|
|
68
68
|
|
|
69
69
|
# tarball fetcher
|
|
70
|
-
set(openPMD_pybind11_tar "https://github.com/pybind/pybind11/archive/refs/tags/
|
|
70
|
+
set(openPMD_pybind11_tar "https://github.com/pybind/pybind11/archive/refs/tags/v3.0.2.tar.gz"
|
|
71
71
|
CACHE STRING
|
|
72
72
|
"Remote tarball link to pull and build pybind11 from if(openPMD_USE_INTERNAL_PYBIND11)")
|
|
73
|
-
set(openPMD_pybind11_tar_hash "SHA256=
|
|
73
|
+
set(openPMD_pybind11_tar_hash "SHA256=2f20a0af0b921815e0e169ea7fec63909869323581b89d7de1553468553f6a2d"
|
|
74
74
|
CACHE STRING
|
|
75
75
|
"Hash checksum of the tarball of pybind11 if(openPMD_USE_INTERNAL_PYBIND11)")
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ set(openPMD_pybind11_tar_hash "SHA256=e08cb87f4773da97fa7b5f035de8763abc656d87d5
|
|
|
78
78
|
set(openPMD_pybind11_repo "https://github.com/pybind/pybind11.git"
|
|
79
79
|
CACHE STRING
|
|
80
80
|
"Repository URI to pull and build pybind11 from if(openPMD_USE_INTERNAL_PYBIND11)")
|
|
81
|
-
set(openPMD_pybind11_branch "
|
|
81
|
+
set(openPMD_pybind11_branch "v3.0.2"
|
|
82
82
|
CACHE STRING
|
|
83
83
|
"Repository branch for openPMD_pybind11_repo if(openPMD_USE_INTERNAL_PYBIND11)")
|
|
84
84
|
|
|
@@ -64,10 +64,10 @@ set(openPMD_toml11_src ""
|
|
|
64
64
|
"Local path to toml11 source directory (preferred if set)")
|
|
65
65
|
|
|
66
66
|
# tarball fetcher
|
|
67
|
-
set(openPMD_toml11_tar "https://github.com/ToruNiina/toml11/archive/
|
|
67
|
+
set(openPMD_toml11_tar "https://github.com/ToruNiina/toml11/archive/b32a2fff0d27e1f7522f26a125101500ddb47156.tar.gz"
|
|
68
68
|
CACHE STRING
|
|
69
69
|
"Remote tarball link to pull and build toml11 from if(openPMD_USE_INTERNAL_TOML11)")
|
|
70
|
-
set(openPMD_toml11_tar_hash "SHA256=
|
|
70
|
+
set(openPMD_toml11_tar_hash "SHA256=c82df2d6a437795a1b5ac0b87886d5eb481deb60d6e79adb1688017857347cda"
|
|
71
71
|
CACHE STRING
|
|
72
72
|
"Hash checksum of the tarball of toml11 if(openPMD_USE_INTERNAL_TOML11)")
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ set(openPMD_toml11_tar_hash "SHA256=9287971cd4a1a3992ef37e7b95a3972d1ae56410e7f8
|
|
|
75
75
|
set(openPMD_toml11_repo "https://github.com/ToruNiina/toml11.git"
|
|
76
76
|
CACHE STRING
|
|
77
77
|
"Repository URI to pull and build toml11 from if(openPMD_USE_INTERNAL_TOML11)")
|
|
78
|
-
set(openPMD_toml11_branch "
|
|
78
|
+
set(openPMD_toml11_branch "b32a2fff0d27e1f7522f26a125101500ddb47156"
|
|
79
79
|
CACHE STRING
|
|
80
80
|
"Repository branch for openPMD_toml11_repo if(openPMD_USE_INTERNAL_TOML11)")
|
|
81
81
|
|
|
@@ -294,7 +294,8 @@ template <typename T>
|
|
|
294
294
|
inline constexpr Datatype determineDatatype(T &&val)
|
|
295
295
|
{
|
|
296
296
|
(void)val; // don't need this, it only has a name for Doxygen
|
|
297
|
-
using T_stripped =
|
|
297
|
+
using T_stripped =
|
|
298
|
+
std::remove_extent_t<std::remove_cv_t<std::remove_reference_t<T>>>;
|
|
298
299
|
if constexpr (auxiliary::IsPointer_v<T_stripped>)
|
|
299
300
|
{
|
|
300
301
|
return determineDatatype<auxiliary::IsPointer_t<T_stripped>>();
|
|
@@ -419,6 +420,8 @@ inline size_t toBits(Datatype d)
|
|
|
419
420
|
return toBytes(d) * CHAR_BIT;
|
|
420
421
|
}
|
|
421
422
|
|
|
423
|
+
constexpr bool isSigned(Datatype d);
|
|
424
|
+
|
|
422
425
|
/** Compare if a Datatype is a vector type
|
|
423
426
|
*
|
|
424
427
|
* @param d Datatype to test
|
|
@@ -595,14 +598,19 @@ inline std::tuple<bool, bool> isInteger()
|
|
|
595
598
|
*/
|
|
596
599
|
template <typename T_FP>
|
|
597
600
|
inline bool isSameFloatingPoint(Datatype d)
|
|
601
|
+
{
|
|
602
|
+
return isSameFloatingPoint(d, determineDatatype<T_FP>());
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
inline bool isSameFloatingPoint(Datatype d1, Datatype d2)
|
|
598
606
|
{
|
|
599
607
|
// template
|
|
600
|
-
bool tt_is_fp = isFloatingPoint
|
|
608
|
+
bool tt_is_fp = isFloatingPoint(d1);
|
|
601
609
|
|
|
602
610
|
// Datatype
|
|
603
|
-
bool dt_is_fp = isFloatingPoint(
|
|
611
|
+
bool dt_is_fp = isFloatingPoint(d2);
|
|
604
612
|
|
|
605
|
-
if (tt_is_fp && dt_is_fp && toBits(
|
|
613
|
+
if (tt_is_fp && dt_is_fp && toBits(d1) == toBits(d2))
|
|
606
614
|
return true;
|
|
607
615
|
else
|
|
608
616
|
return false;
|
|
@@ -617,15 +625,19 @@ inline bool isSameFloatingPoint(Datatype d)
|
|
|
617
625
|
*/
|
|
618
626
|
template <typename T_CFP>
|
|
619
627
|
inline bool isSameComplexFloatingPoint(Datatype d)
|
|
628
|
+
{
|
|
629
|
+
return isSameComplexFloatingPoint(d, determineDatatype<T_CFP>());
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
inline bool isSameComplexFloatingPoint(Datatype d1, Datatype d2)
|
|
620
633
|
{
|
|
621
634
|
// template
|
|
622
|
-
bool tt_is_cfp = isComplexFloatingPoint
|
|
635
|
+
bool tt_is_cfp = isComplexFloatingPoint(d1);
|
|
623
636
|
|
|
624
637
|
// Datatype
|
|
625
|
-
bool dt_is_cfp = isComplexFloatingPoint(
|
|
638
|
+
bool dt_is_cfp = isComplexFloatingPoint(d2);
|
|
626
639
|
|
|
627
|
-
if (tt_is_cfp && dt_is_cfp &&
|
|
628
|
-
toBits(d) == toBits(determineDatatype<T_CFP>()))
|
|
640
|
+
if (tt_is_cfp && dt_is_cfp && toBits(d1) == toBits(d2))
|
|
629
641
|
return true;
|
|
630
642
|
else
|
|
631
643
|
return false;
|
|
@@ -640,17 +652,22 @@ inline bool isSameComplexFloatingPoint(Datatype d)
|
|
|
640
652
|
*/
|
|
641
653
|
template <typename T_Int>
|
|
642
654
|
inline bool isSameInteger(Datatype d)
|
|
655
|
+
{
|
|
656
|
+
return isSameInteger(d, determineDatatype<T_Int>());
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
inline bool isSameInteger(Datatype d1, Datatype d2)
|
|
643
660
|
{
|
|
644
661
|
// template
|
|
645
662
|
bool tt_is_int, tt_is_sig;
|
|
646
|
-
std::tie(tt_is_int, tt_is_sig) = isInteger
|
|
663
|
+
std::tie(tt_is_int, tt_is_sig) = isInteger(d1);
|
|
647
664
|
|
|
648
665
|
// Datatype
|
|
649
666
|
bool dt_is_int, dt_is_sig;
|
|
650
|
-
std::tie(dt_is_int, dt_is_sig) = isInteger(
|
|
667
|
+
std::tie(dt_is_int, dt_is_sig) = isInteger(d2);
|
|
651
668
|
|
|
652
669
|
if (tt_is_int && dt_is_int && tt_is_sig == dt_is_sig &&
|
|
653
|
-
toBits(
|
|
670
|
+
toBits(d1) == toBits(d2))
|
|
654
671
|
return true;
|
|
655
672
|
else
|
|
656
673
|
return false;
|
|
@@ -691,46 +708,15 @@ constexpr bool isChar(Datatype d)
|
|
|
691
708
|
template <typename T_Char>
|
|
692
709
|
constexpr bool isSameChar(Datatype d);
|
|
693
710
|
|
|
711
|
+
constexpr bool isSameChar(Datatype d1, Datatype d2);
|
|
712
|
+
|
|
694
713
|
/** Comparison for two Datatypes
|
|
695
714
|
*
|
|
696
715
|
* Besides returning true for the same types, identical implementations on
|
|
697
716
|
* some platforms, e.g. if long and long long are the same or double and
|
|
698
717
|
* long double will also return true.
|
|
699
718
|
*/
|
|
700
|
-
|
|
701
|
-
{
|
|
702
|
-
// exact same type
|
|
703
|
-
if (static_cast<int>(d) == static_cast<int>(e))
|
|
704
|
-
return true;
|
|
705
|
-
|
|
706
|
-
bool d_is_vec = isVector(d);
|
|
707
|
-
bool e_is_vec = isVector(e);
|
|
708
|
-
|
|
709
|
-
// same int
|
|
710
|
-
bool d_is_int, d_is_sig;
|
|
711
|
-
std::tie(d_is_int, d_is_sig) = isInteger(d);
|
|
712
|
-
bool e_is_int, e_is_sig;
|
|
713
|
-
std::tie(e_is_int, e_is_sig) = isInteger(e);
|
|
714
|
-
if (d_is_int && e_is_int && d_is_vec == e_is_vec && d_is_sig == e_is_sig &&
|
|
715
|
-
toBits(d) == toBits(e))
|
|
716
|
-
return true;
|
|
717
|
-
|
|
718
|
-
// same float
|
|
719
|
-
bool d_is_fp = isFloatingPoint(d);
|
|
720
|
-
bool e_is_fp = isFloatingPoint(e);
|
|
721
|
-
|
|
722
|
-
if (d_is_fp && e_is_fp && d_is_vec == e_is_vec && toBits(d) == toBits(e))
|
|
723
|
-
return true;
|
|
724
|
-
|
|
725
|
-
// same complex floating point
|
|
726
|
-
bool d_is_cfp = isComplexFloatingPoint(d);
|
|
727
|
-
bool e_is_cfp = isComplexFloatingPoint(e);
|
|
728
|
-
|
|
729
|
-
if (d_is_cfp && e_is_cfp && d_is_vec == e_is_vec && toBits(d) == toBits(e))
|
|
730
|
-
return true;
|
|
731
|
-
|
|
732
|
-
return false;
|
|
733
|
-
}
|
|
719
|
+
constexpr bool isSame(openPMD::Datatype d, openPMD::Datatype e);
|
|
734
720
|
|
|
735
721
|
/**
|
|
736
722
|
* @brief basicDatatype Strip openPMD Datatype of std::vector, std::array et.
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
// comment to prevent clang-format from moving this #include up
|
|
26
26
|
// datatype macros may be included and un-included in other headers
|
|
27
27
|
#include "openPMD/DatatypeMacros.hpp"
|
|
28
|
+
#include "openPMD/auxiliary/TypeTraits.hpp"
|
|
28
29
|
|
|
29
30
|
#include <string>
|
|
30
31
|
#include <type_traits> // std::void_t
|
|
@@ -253,6 +254,56 @@ constexpr inline bool isSameChar(Datatype d)
|
|
|
253
254
|
{
|
|
254
255
|
return switchType<detail::IsSameChar<T_Char>>(d);
|
|
255
256
|
}
|
|
257
|
+
|
|
258
|
+
namespace detail
|
|
259
|
+
{
|
|
260
|
+
struct IsSigned
|
|
261
|
+
{
|
|
262
|
+
template <typename T>
|
|
263
|
+
static constexpr bool call()
|
|
264
|
+
{
|
|
265
|
+
if constexpr (auxiliary::IsVector_v<T> || auxiliary::IsArray_v<T>)
|
|
266
|
+
{
|
|
267
|
+
return call<typename T::value_type>();
|
|
268
|
+
}
|
|
269
|
+
else if constexpr (std::is_same_v<T, std::string>)
|
|
270
|
+
{
|
|
271
|
+
return call<char>();
|
|
272
|
+
}
|
|
273
|
+
else
|
|
274
|
+
{
|
|
275
|
+
return std::is_signed_v<T>;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
static constexpr char const *errorMsg = "IsSigned";
|
|
280
|
+
};
|
|
281
|
+
} // namespace detail
|
|
282
|
+
|
|
283
|
+
constexpr inline bool isSigned(Datatype d)
|
|
284
|
+
{
|
|
285
|
+
return switchType<detail::IsSigned>(d);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
constexpr inline bool isSameChar(Datatype d, Datatype e)
|
|
289
|
+
{
|
|
290
|
+
return isChar(d) && isChar(e) && isSigned(d) == isSigned(e);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
constexpr bool isSame(openPMD::Datatype const d, openPMD::Datatype const e)
|
|
294
|
+
{
|
|
295
|
+
return
|
|
296
|
+
// exact same type
|
|
297
|
+
static_cast<int>(d) == static_cast<int>(e)
|
|
298
|
+
// same int
|
|
299
|
+
|| isSameInteger(d, e)
|
|
300
|
+
// same float
|
|
301
|
+
|| isSameFloatingPoint(d, e)
|
|
302
|
+
// same complex floating point
|
|
303
|
+
|| isSameComplexFloatingPoint(d, e)
|
|
304
|
+
// same char
|
|
305
|
+
|| isSameChar(d, e);
|
|
306
|
+
}
|
|
256
307
|
} // namespace openPMD
|
|
257
308
|
|
|
258
309
|
#include "openPMD/UndefDatatypeMacros.hpp"
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
ADIOS2_VERSION_PATCH >= \
|
|
35
35
|
2101)
|
|
36
36
|
|
|
37
|
+
#define openPMD_HAS_ADIOS_2_12_1 \
|
|
38
|
+
(ADIOS2_VERSION_MAJOR * 1000 + ADIOS2_VERSION_MINOR * 10 + \
|
|
39
|
+
ADIOS2_VERSION_PATCH >= \
|
|
40
|
+
2121)
|
|
41
|
+
|
|
37
42
|
#if defined(ADIOS2_HAVE_BP5) || openPMD_HAS_ADIOS_2_10
|
|
38
43
|
// ADIOS2 v2.10 no longer defines this
|
|
39
44
|
#define openPMD_HAVE_ADIOS2_BP5 1
|
{openpmd_api-0.17.0 → openpmd_api-0.17.1.post1}/include/openPMD/IO/AbstractIOHandlerImplCommon.hpp
RENAMED
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
#include "openPMD/auxiliary/StringManip.hpp"
|
|
29
29
|
#include "openPMD/backend/Writable.hpp"
|
|
30
30
|
|
|
31
|
+
#include <set>
|
|
31
32
|
#include <stdexcept>
|
|
32
33
|
#include <string>
|
|
33
34
|
#include <unordered_map>
|
|
34
|
-
#include <unordered_set>
|
|
35
35
|
|
|
36
36
|
namespace openPMD
|
|
37
37
|
{
|
|
@@ -50,7 +50,10 @@ protected:
|
|
|
50
50
|
* without the OS path
|
|
51
51
|
*/
|
|
52
52
|
std::unordered_map<Writable *, InvalidatableFile> m_files;
|
|
53
|
-
|
|
53
|
+
// MUST be an ordered set in order to consistently flush on different
|
|
54
|
+
// parallel processes (same logic cant apply to m_files since Writable*
|
|
55
|
+
// pointers are not predictable)
|
|
56
|
+
std::set<InvalidatableFile> m_dirty;
|
|
54
57
|
|
|
55
58
|
enum PossiblyExisting
|
|
56
59
|
{
|
|
@@ -82,4 +82,14 @@ struct hash<openPMD::InvalidatableFile>
|
|
|
82
82
|
|
|
83
83
|
result_type operator()(argument_type const &s) const noexcept;
|
|
84
84
|
};
|
|
85
|
+
|
|
86
|
+
template <>
|
|
87
|
+
struct less<openPMD::InvalidatableFile>
|
|
88
|
+
{
|
|
89
|
+
using first_argument_type = openPMD::InvalidatableFile;
|
|
90
|
+
using second_argument_type = first_argument_type;
|
|
91
|
+
using result_type = bool;
|
|
92
|
+
result_type
|
|
93
|
+
operator()(first_argument_type const &, second_argument_type const &) const;
|
|
94
|
+
};
|
|
85
95
|
} // namespace std
|