openPMD / openPMD/openPMD-api

Dataset not properly initialized ?

Open
#1,318 10 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
161
Forks
59
Avg merge
2d 22h
Merged PRs (30d)
7

Description

**Describe the bug**
Dataset class not properly initialised

**To Reproduce**
trying c++ code from the repository, 1D domain decompostion/particle
```
Dataset dataset = Dataset(determineDatatype(), {mpi_size});

if (0 == mpi_rank)
cout << "Prepared a Dataset of size " << dataset.extent[0] << " x "
<< dataset.extent[1] << " and Datatype " << dataset.dtype
<< '\n';
```
** obtained output **
`Prepared a Dataset of size 50 x 47760564901816 and Datatype DOUBLE`
seems that dataset.extend[1] is not initialised?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.