Skip to content

non-deterministic data values returned when reading from a BP5 file #1570

@BenWibking

Description

@BenWibking

Describe the bug
I get different, incorrect values when reading a BP5 file in Python I created using the C++ API.
I also get different values each time I run the script to read the data(!).

To Reproduce
Compile-able/executable code example to reproduce the problem:

Python:

import openpmd_api as io

series = io.Series("plt00000.bp", io.Access.read_only)
my_iter = series.iterations[0]
mesh = my_iter.meshes
comp = mesh['gasDensity']['\x0bScalar']

my_list = list(comp)

print("first try:")
# this gives one value
print(comp[0])

print("second try (produces different output from the above, and different on each run):")
# this is different from the above
print(comp[0])

Reading from these attached files:
quokka_bp5.tar.gz

Expected behavior
It should produce the same output every time it's run!

Software Environment

  • version of openPMD-api: 0.15.2
  • installed openPMD-api via: brew
  • operating system: macOS 14.2
  • machine: MacBook Pro (Apple M1 Pro)
  • name and version of Python implementation: CPython 3.12.1
  • version of HDF5: 1.14.3
  • version of ADIOS2: 2.9.2
  • name and version of MPI: OpenMPI 5.0.0

Additional context
Written using Quokka: quokka-astro/quokka@f7f34fc

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions