ovftoolkit 0.3.0__tar.gz → 0.4.0__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.
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.github/workflows/ci.yml +1 -1
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.github/workflows/release.yml +3 -6
- ovftoolkit-0.4.0/CHANGELOG.md +19 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/CMakeLists.txt +7 -17
- ovftoolkit-0.4.0/LICENSES/cli11.txt +27 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFDictionary.h +2 -1
- ovftoolkit-0.4.0/OVFParser/OVFEndian.h +46 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFParser.h +14 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFReader.cpp +49 -18
- ovftoolkit-0.4.0/OVFParser/OVFWriter.cpp +748 -0
- ovftoolkit-0.4.0/OVFParser/OVFWriter.h +248 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/VField.cpp +51 -58
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/VField.h +90 -29
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/PKG-INFO +103 -16
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/README.md +93 -15
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/THIRD_PARTY_NOTICES.md +3 -1
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/CMakeLists.txt +17 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/bindings.cpp +48 -0
- ovftoolkit-0.4.0/bindings/python/ovftoolkit/__init__.py +15 -0
- ovftoolkit-0.4.0/bindings/python/ovftoolkit/__init__.pyi +11 -0
- ovftoolkit-0.4.0/bindings/python/ovftoolkit/arrays.py +46 -0
- ovftoolkit-0.4.0/bindings/python/ovftoolkit/conversion.py +133 -0
- ovftoolkit-0.4.0/bindings/python/ovftoolkit/visualization.py +243 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/test_binding.py +32 -0
- ovftoolkit-0.4.0/bindings/python/test_conversion.py +61 -0
- ovftoolkit-0.4.0/bindings/python/test_plot.py +147 -0
- ovftoolkit-0.4.0/docs/help/interactive/magnetisation.html +7 -0
- ovftoolkit-0.4.0/docs/help/reference/index.md +41 -0
- ovftoolkit-0.4.0/docs/help/reference/python.md +164 -0
- ovftoolkit-0.4.0/docs/images/magnetisation-streamlines.png +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/pyproject.toml +7 -1
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg.json +1 -2
- ovftoolkit-0.3.0/OVFParser/OVFWriter.cpp +0 -281
- ovftoolkit-0.3.0/OVFParser/OVFWriter.h +0 -111
- ovftoolkit-0.3.0/bindings/python/ovftoolkit/__init__.py +0 -6
- ovftoolkit-0.3.0/bindings/python/ovftoolkit/__init__.pyi +0 -6
- ovftoolkit-0.3.0/bindings/python/ovftoolkit/arrays.py +0 -25
- ovftoolkit-0.3.0/docs/help/reference/index.md +0 -12
- ovftoolkit-0.3.0/docs/help/reference/python.md +0 -87
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.gitattributes +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.github/workflows/docs.yml +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.gitignore +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSE +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSES/mdspan.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSES/nanobind.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSING.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFGrammar.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFHeader.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFHeader.h +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFToolkitConfig.h.in +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/ovftoolkit/py.typed +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/ovftoolkit/spectrum.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/test_arrays.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/test_spectrum.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/Doxyfile +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/README.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/cpp-mainpage.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/help/examples/index.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/help/index.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/images/ovftoolkit-python-example.png +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/overrides/main.html +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/prepare_help.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/requirements.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - figure eight/FigureEightGeometry.ipynb +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - figure eight/figure-eight.mx3.in +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/PigGeometry.ipynb +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/model/README.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/model/origins-of-the-pig.obj +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/model/upstream-info.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/pig.mx3.in +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Process spectrum/OVFToolkitWorkFlow.ipynb +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Process spectrum/vortex-dynamics.mx3.in +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/YIG strip dispersion/YIGStripDispersion.ipynb +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/YIG strip dispersion/yig-strip.mx3.in +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/create_ovf.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/plot_ovf.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.clang-tidy +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/dependabot.yml +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/workflows/cmake-windows.yml +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/workflows/cmake.yml +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/workflows/single-header.yml +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.gitignore +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/LICENSE +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/LICENSE_FILE_HEADER +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/README.md +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/copy/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/copy/copy_layout_stride.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/fill.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/cuda/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/cuda/matvec_cuda.cu +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/openmp/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/openmp/matvec_openmp.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/cuda/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/cuda/stencil_3d_cuda.cu +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/openmp/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/openmp/stencil_3d_openmp.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/stencil_3d.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/cuda/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/cuda/sum_3d_cuda.cu +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/openmp/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/openmp/sum_3d_openmp.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_3d_common.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_3d_left.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_3d_right.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_submdspan_right.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/openmp/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/openmp/tiny_matrix_add_openmp.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/tiny_matrix_add.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/cmake/mdspanConfig.cmake.in +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/cmake/metabench.cmake +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/comp_bench/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/comp_bench/cbench_submdspan.cpp.erb +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_common.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_compressed_pair_layout.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constexpr_dereference.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constexpr_layouts.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constexpr_submdspan.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constructor_sfinae.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_extents_ctors.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_extents_type_check.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_layout_convertible.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_layout_type_check.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_mdarray_type_check.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_mdspan_convertible.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_namespace_std.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_no_unique_address.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_standard_layout.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_trivially_copyable.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/aligned_accessor/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/aligned_accessor/aligned_accessor.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/dot_product/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/dot_product/dot_product.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/godbolt_starter/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/godbolt_starter/godbolt_starter.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/restrict_accessor/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/restrict_accessor/restrict_accessor.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/tiled_layout/CMakeLists.txt +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/tiled_layout/simple_tiled_layout.cpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/compressed_pair.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/config.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/default_accessor.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/dynamic_extent.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/extents.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/full_extent_t.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/layout_left.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/layout_right.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/layout_stride.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/macros.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/mdspan.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/no_unique_address.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/trait_backports.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/type_list.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/utility.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p1684_bits/mdarray.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2389_bits/dims.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/constant_wrapper.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/integral_constant_like.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/strided_slice.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan_canonicalize_slices.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan_extents.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan_mapping.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2642_bits/layout_padded.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2642_bits/layout_padded_fwd.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/mdarray +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/mdspan +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/mdspan/mdarray.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/mdspan/mdspan.hpp +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/make_single_header.py +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/config-all +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/config-one +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/config-one-cuda +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/gtest-clang-patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/gtest-hip-patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/gtest-nvhpc-patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/mkdocs.yml +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-configuration.json +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/aligned_malloc.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/fftw3_arch_fix.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/fix-avx2-fma-flags.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/fix-openmp.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/install-subtargets.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/neon.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/portfile.cmake +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/propagate-fftw-dll.patch +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/vcpkg.json +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-triplets/x64-windows-release.cmake +0 -0
- {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-triplets/x64-windows-static-release.cmake +0 -0
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
run: |
|
|
33
33
|
apt-get update
|
|
34
34
|
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
|
|
35
|
-
gcc-14 g++-14 golang-go
|
|
35
|
+
gcc-14 g++-14 golang-go libcli11-dev libfftw3-dev \
|
|
36
36
|
libhdf5-dev libtbb-dev libvtk9-dev ninja-build \
|
|
37
37
|
python3-dev python3-pip
|
|
38
38
|
python3 -m pip install --break-system-packages \
|
|
@@ -229,11 +229,6 @@ jobs:
|
|
|
229
229
|
CIBW_CONFIG_SETTINGS: >-
|
|
230
230
|
wheel.py-api=cp312
|
|
231
231
|
cmake.define.OVFTOOLKIT_PYTHON_STABLE_ABI=ON
|
|
232
|
-
CIBW_BEFORE_ALL_LINUX: >-
|
|
233
|
-
if command -v dnf >/dev/null 2>&1;
|
|
234
|
-
then dnf install -y boost-devel;
|
|
235
|
-
else yum install -y boost-devel;
|
|
236
|
-
fi
|
|
237
232
|
run: python -m cibuildwheel --output-dir wheelhouse
|
|
238
233
|
- uses: actions/upload-artifact@v6
|
|
239
234
|
with:
|
|
@@ -311,7 +306,9 @@ jobs:
|
|
|
311
306
|
steps:
|
|
312
307
|
- uses: actions/download-artifact@v6
|
|
313
308
|
with:
|
|
314
|
-
|
|
309
|
+
# The sdist is published to PyPI but is redundant on GitHub beside
|
|
310
|
+
# the standalone, submodule-complete source bundle below.
|
|
311
|
+
pattern: release-wheel-*
|
|
315
312
|
path: release-assets
|
|
316
313
|
merge-multiple: true
|
|
317
314
|
- uses: actions/download-artifact@v6
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
- Add one-shot C++ stream reading and writing, Python OVF bytes serialization,
|
|
6
|
+
and `VField` pickling.
|
|
7
|
+
- Add atomic mapping-based header construction and updates, plus coordinate
|
|
8
|
+
and NumPy helpers.
|
|
9
|
+
- Add optional VTK/HDF5 conversion and interactive Plotly magnetisation
|
|
10
|
+
slices, including streamlines, arrows, automatic units, and themes.
|
|
11
|
+
`to_pyvista()` returns a PyVista dataset for further processing.
|
|
12
|
+
- Refactor the OVF writer, remove Boost.Endian, and replace
|
|
13
|
+
Boost.Program_options with CLI11.
|
|
14
|
+
- Update the CUDA 13 Mumax3 source fallback to the `dev` branch.
|
|
15
|
+
|
|
16
|
+
### C++ migration
|
|
17
|
+
|
|
18
|
+
`OVFStreamWriter::create` now accepts `VField::ScalarType::Float32` or
|
|
19
|
+
`VField::ScalarType::Float64` in place of the scalar size in bytes.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.30)
|
|
2
2
|
|
|
3
3
|
#versioning
|
|
4
|
-
project(OVFToolkit VERSION 0.
|
|
4
|
+
project(OVFToolkit VERSION 0.4.0 DESCRIPTION "Vector field files interface library" LANGUAGES CXX C)
|
|
5
5
|
|
|
6
6
|
#TODO: add some more checks
|
|
7
7
|
# C++ standard
|
|
@@ -106,27 +106,20 @@ endif()
|
|
|
106
106
|
|
|
107
107
|
# also need some parallelization libs
|
|
108
108
|
find_package(Threads REQUIRED)
|
|
109
|
-
#
|
|
110
|
-
# program_options, which should not be a build dependency of Python wheels.
|
|
111
|
-
# Use CMake's FindBoost module so header-only distro packages remain usable;
|
|
112
|
-
# manylinux's boost-devel does not ship BoostConfig.cmake.
|
|
113
|
-
cmake_policy(PUSH)
|
|
114
|
-
cmake_policy(SET CMP0167 OLD)
|
|
115
|
-
find_package(Boost 1.58.0 REQUIRED)
|
|
109
|
+
# Only the command-line tools use CLI11.
|
|
116
110
|
set(OVFTOOLKIT_BUILD_TOOLS_ENABLED OFF)
|
|
117
111
|
if(NOT OVFTOOLKIT_BUILD_TOOLS STREQUAL "OFF")
|
|
118
|
-
find_package(
|
|
119
|
-
if(
|
|
112
|
+
find_package(CLI11 CONFIG QUIET)
|
|
113
|
+
if(CLI11_FOUND)
|
|
120
114
|
set(OVFTOOLKIT_BUILD_TOOLS_ENABLED ON)
|
|
121
115
|
elseif(OVFTOOLKIT_BUILD_TOOLS STREQUAL "ON")
|
|
122
116
|
message(FATAL_ERROR
|
|
123
|
-
"OVFTOOLKIT_BUILD_TOOLS=ON requires
|
|
117
|
+
"OVFTOOLKIT_BUILD_TOOLS=ON requires CLI11")
|
|
124
118
|
else()
|
|
125
119
|
message(STATUS
|
|
126
|
-
"Command-line tools disabled:
|
|
120
|
+
"Command-line tools disabled: CLI11 was not found")
|
|
127
121
|
endif()
|
|
128
122
|
endif()
|
|
129
|
-
cmake_policy(POP)
|
|
130
123
|
if(OVFTOOLKIT_BUILD_MUMAX_RUNNER STREQUAL "ON" AND
|
|
131
124
|
NOT OVFTOOLKIT_BUILD_TOOLS_ENABLED)
|
|
132
125
|
message(FATAL_ERROR
|
|
@@ -251,7 +244,7 @@ if(OVFTOOLKIT_USE_CUFFT STREQUAL "ON" AND NOT OVFTOOLKIT_CUFFT_FOUND)
|
|
|
251
244
|
endif()
|
|
252
245
|
endif()
|
|
253
246
|
set(BUILD_FFUTIL OFF)
|
|
254
|
-
if((FFTW_FLOAT_LIB_FOUND OR OVFTOOLKIT_CUFFT_FOUND) AND
|
|
247
|
+
if((FFTW_FLOAT_LIB_FOUND OR OVFTOOLKIT_CUFFT_FOUND) AND OVFTOOLKIT_BUILD_TOOLS_ENABLED)
|
|
255
248
|
set(BUILD_FFUTIL ON)
|
|
256
249
|
endif()
|
|
257
250
|
IF(BUILD_FFUTIL)
|
|
@@ -301,9 +294,6 @@ target_include_directories(ovfparser PUBLIC
|
|
|
301
294
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/OVFParser>
|
|
302
295
|
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/OVFParser>
|
|
303
296
|
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
|
|
304
|
-
PRIVATE
|
|
305
|
-
#boost for building internals
|
|
306
|
-
"${Boost_INCLUDE_DIRS}"
|
|
307
297
|
)
|
|
308
298
|
|
|
309
299
|
if(NOT OVFTOOLKIT_HAS_STD_MDSPAN)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
CLI11 2.7.2 Copyright (c) 2017-2026 University of Cincinnati, developed by Henry
|
|
2
|
+
Schreiner under NSF AWARD 1414736. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms of CLI11, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
15
|
+
may be used to endorse or promote products derived from this software without
|
|
16
|
+
specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
22
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
25
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -126,7 +126,7 @@ namespace VField {
|
|
|
126
126
|
|
|
127
127
|
} // namespace VField
|
|
128
128
|
|
|
129
|
-
/** @
|
|
129
|
+
/** @cond */
|
|
130
130
|
namespace DictionaryHelpers{
|
|
131
131
|
/** OVF parameter shorthand used by compile-time helpers. */
|
|
132
132
|
using Parameter = VField::OVFParameter;
|
|
@@ -412,6 +412,7 @@ namespace DictionaryHelpers{
|
|
|
412
412
|
return result;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
+
/** @endcond */
|
|
415
416
|
|
|
416
417
|
namespace VField {
|
|
417
418
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "OVFHeader.h"
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
#include <array>
|
|
6
|
+
#include <bit>
|
|
7
|
+
#include <cstddef>
|
|
8
|
+
#include <cstdint>
|
|
9
|
+
#include <type_traits>
|
|
10
|
+
|
|
11
|
+
namespace VField {
|
|
12
|
+
template<typename T>
|
|
13
|
+
struct UintAnalogue {};
|
|
14
|
+
template<typename T>
|
|
15
|
+
requires(sizeof(T) == sizeof(std::uint16_t))
|
|
16
|
+
struct UintAnalogue<T> {using type = std::uint16_t;};
|
|
17
|
+
template<typename T>
|
|
18
|
+
requires(sizeof(T) == sizeof(std::uint32_t))
|
|
19
|
+
struct UintAnalogue<T> {using type = std::uint32_t;};
|
|
20
|
+
template<typename T>
|
|
21
|
+
requires(sizeof(T) == sizeof(std::uint64_t))
|
|
22
|
+
struct UintAnalogue<T> {using type = std::uint64_t;};
|
|
23
|
+
template<typename T>
|
|
24
|
+
using UintAnalogue_t = typename UintAnalogue<T>::type;
|
|
25
|
+
|
|
26
|
+
template<typename T>
|
|
27
|
+
requires std::is_trivially_copyable_v<T>
|
|
28
|
+
constexpr T byteSwap(T val)
|
|
29
|
+
{
|
|
30
|
+
if constexpr(sizeof(T) == 1)
|
|
31
|
+
return val;
|
|
32
|
+
else if constexpr(requires {typename UintAnalogue_t<T>; })
|
|
33
|
+
return std::bit_cast<T>(std::byteswap(std::bit_cast<UintAnalogue_t<T>>(val)) );
|
|
34
|
+
else
|
|
35
|
+
{
|
|
36
|
+
auto bytes = std::bit_cast<
|
|
37
|
+
std::array<std::byte, sizeof(T)>>(val);
|
|
38
|
+
std::ranges::reverse(bytes);
|
|
39
|
+
|
|
40
|
+
return std::bit_cast<T>(bytes);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
inline constexpr auto requiresBSwap(OVFVersion ver)
|
|
45
|
+
{ return std::endian::native != (ver == OVFVersion::OVF1? std::endian::big : std::endian::little); }
|
|
46
|
+
}
|
|
@@ -56,6 +56,7 @@ namespace VField {
|
|
|
56
56
|
|
|
57
57
|
[[nodiscard]] ReadResult<std::reference_wrapper<VField>>
|
|
58
58
|
fetch(std::size_t index);
|
|
59
|
+
[[nodiscard]] ReadResult<void> parse(std::istream& input, DataLoading loading);
|
|
59
60
|
void logMessage(const std::string& message);
|
|
60
61
|
[[nodiscard]] ReadError error(ReadErrorCode code,
|
|
61
62
|
std::string message,
|
|
@@ -85,6 +86,19 @@ namespace VField {
|
|
|
85
86
|
read(const std::filesystem::path& path,
|
|
86
87
|
DataLoading loading = DataLoading::Lazy);
|
|
87
88
|
|
|
89
|
+
/** @brief Parse all remaining bytes from a stream into a new handle.
|
|
90
|
+
* @param input Input stream positioned at the start of an OVF file.
|
|
91
|
+
* @return Parsed file with every segment eagerly loaded. The stream
|
|
92
|
+
* need not support seeking.
|
|
93
|
+
*/
|
|
94
|
+
[[nodiscard]] static ReadResult<VFieldFile> open(std::istream& input);
|
|
95
|
+
/** @brief Replace this handle by eagerly parsing the remaining stream.
|
|
96
|
+
* @param input Input stream positioned at the start of an OVF file.
|
|
97
|
+
* @return Success or a diagnostic read error. The stream need not
|
|
98
|
+
* support seeking.
|
|
99
|
+
*/
|
|
100
|
+
[[nodiscard]] ReadResult<void> read(std::istream& input);
|
|
101
|
+
|
|
88
102
|
/** @return Path supplied to the most recent read operation. */
|
|
89
103
|
[[nodiscard]] const std::filesystem::path& path() const noexcept;
|
|
90
104
|
/** @return Number of parsed segments. */
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
#include<algorithm>
|
|
10
10
|
#include<optional>
|
|
11
11
|
#include<format>
|
|
12
|
+
#include<sstream>
|
|
13
|
+
#include<iterator>
|
|
12
14
|
#include"OVFParser.h"
|
|
13
15
|
#include"OVFDictionary.h"
|
|
14
|
-
|
|
15
|
-
#include<boost/endian/conversion.hpp>
|
|
16
|
+
#include "OVFEndian.h"
|
|
16
17
|
#include<cstdint>
|
|
17
18
|
|
|
18
19
|
namespace VField{
|
|
@@ -210,6 +211,35 @@ namespace VField{
|
|
|
210
211
|
//of diagnostics. Lazy-access diagnostics may be appended afterwards.
|
|
211
212
|
data_->log.clear();
|
|
212
213
|
path_ = path;
|
|
214
|
+
std::ifstream file(path_, std::ios_base::binary);
|
|
215
|
+
if(!file.good())
|
|
216
|
+
return std::unexpected(error(ReadErrorCode::OpenFailed, "Unable to open source file"));
|
|
217
|
+
return parse(file, loading);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
ReadResult<VFieldFile> VFieldFile::open(std::istream& input)
|
|
221
|
+
{
|
|
222
|
+
VFieldFile file;
|
|
223
|
+
if(auto result = file.read(input); !result)
|
|
224
|
+
return std::unexpected(std::move(result.error()));
|
|
225
|
+
return file;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
ReadResult<void> VFieldFile::read(std::istream& input)
|
|
229
|
+
{
|
|
230
|
+
path_.clear();
|
|
231
|
+
data_->log.clear();
|
|
232
|
+
std::string bytes{std::istreambuf_iterator<char>{input}, std::istreambuf_iterator<char>{}};
|
|
233
|
+
if(input.bad())
|
|
234
|
+
return std::unexpected(error(ReadErrorCode::StreamFailure, "Failed to read input stream"));
|
|
235
|
+
std::istringstream buffer(std::move(bytes), std::ios_base::in | std::ios_base::binary);
|
|
236
|
+
auto result = parse(buffer, DataLoading::Eager);
|
|
237
|
+
for(auto& entry : data_->prefetch) entry = {};
|
|
238
|
+
return result;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
ReadResult<void> VFieldFile::parse(std::istream& file, DataLoading loading)
|
|
242
|
+
{
|
|
213
243
|
|
|
214
244
|
constexpr std::array<OVFParameter, 5> TopLevelTags{
|
|
215
245
|
OVFParameter::Open,
|
|
@@ -219,7 +249,6 @@ namespace VField{
|
|
|
219
249
|
OVFParameter::Comment
|
|
220
250
|
};
|
|
221
251
|
//first try to open the file
|
|
222
|
-
std::ifstream file(path_, std::ios_base::binary);//TODO: check if opening it as binary from the start messes with getline
|
|
223
252
|
if(!file.good())
|
|
224
253
|
{
|
|
225
254
|
logMessage("VFieldFile::read: Unable to open source file");
|
|
@@ -390,6 +419,13 @@ namespace VField{
|
|
|
390
419
|
data_->prefetch.back().second,
|
|
391
420
|
loading == DataLoading::Lazy
|
|
392
421
|
);
|
|
422
|
+
if(loading == DataLoading::Eager)
|
|
423
|
+
{
|
|
424
|
+
file.clear();
|
|
425
|
+
file.seekg(pos);
|
|
426
|
+
std::size_t count = data_->prefetch.back().second;
|
|
427
|
+
readData(file, data_->fields.back(), std::nullopt, count, true);
|
|
428
|
+
}
|
|
393
429
|
if(log != "")
|
|
394
430
|
logMessage(std::format(
|
|
395
431
|
"VFieldFile::read: Errors reading data at line {}:\n{}", line_cnt, log));
|
|
@@ -765,10 +801,8 @@ namespace VField{
|
|
|
765
801
|
float test{};
|
|
766
802
|
file.read( reinterpret_cast<std::istream::char_type *>(&test),
|
|
767
803
|
sizeof(float)/sizeof(std::istream::char_type) );
|
|
768
|
-
if(
|
|
769
|
-
|
|
770
|
-
boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint32_t*>(&test));
|
|
771
|
-
//WARNING: causes warning in gcc :'(
|
|
804
|
+
if(requiresBSwap(version))
|
|
805
|
+
test = byteSwap(test);
|
|
772
806
|
if(test != TestVal<float>)
|
|
773
807
|
{
|
|
774
808
|
if(log!="") log += "\n";
|
|
@@ -785,10 +819,9 @@ namespace VField{
|
|
|
785
819
|
log+= "readData: Unexpected end of data";
|
|
786
820
|
return log;
|
|
787
821
|
}
|
|
788
|
-
if(
|
|
789
|
-
(
|
|
790
|
-
|
|
791
|
-
boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint32_t*>(buffer.get() + i));
|
|
822
|
+
if(requiresBSwap(version))
|
|
823
|
+
for(std::size_t i = 0; i < importDepth; ++i)
|
|
824
|
+
buffer[i] = byteSwap(buffer[i]);
|
|
792
825
|
out.adoptData(std::move(buffer), importDepth);
|
|
793
826
|
return log;
|
|
794
827
|
}
|
|
@@ -797,9 +830,8 @@ namespace VField{
|
|
|
797
830
|
double test{};
|
|
798
831
|
file.read( reinterpret_cast<std::istream::char_type *>(&test),
|
|
799
832
|
sizeof(double)/sizeof(std::istream::char_type) );
|
|
800
|
-
if(
|
|
801
|
-
|
|
802
|
-
boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint64_t*>(&test));
|
|
833
|
+
if(requiresBSwap(version))
|
|
834
|
+
test = byteSwap(test);
|
|
803
835
|
if(test != TestVal<double>)
|
|
804
836
|
{
|
|
805
837
|
if(log!="") log += "\n";
|
|
@@ -816,10 +848,9 @@ namespace VField{
|
|
|
816
848
|
log+= "readData: Unexpected end of data";
|
|
817
849
|
return log;
|
|
818
850
|
}
|
|
819
|
-
if(
|
|
820
|
-
(
|
|
821
|
-
|
|
822
|
-
boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint64_t*>(buffer.get() + i));
|
|
851
|
+
if(requiresBSwap(version))
|
|
852
|
+
for(std::size_t i = 0; i < importDepth; ++i)
|
|
853
|
+
buffer[i] = byteSwap(buffer[i]);
|
|
823
854
|
out.adoptData(std::move(buffer), importDepth);
|
|
824
855
|
return log;
|
|
825
856
|
}
|