Skip to content

resizeable datasets: problematic if first extent is zero #1094

Open
@ax3l

Description

@ax3l

With resizeable datasets, there is a problem to resize them if we first declare them as "zero" size.

terminate called after throwing an instance of 'std::runtime_error'
  what():  Chunks cannot be written for a constant RecordComponent.
SIGABRT

Since handling zero-extent datasets is somewhat special (they need to become constant record components), it might be that we want to guard this in the frontend (throw an error if a resizeable data set is declared with zero extent).

The work-around/proper workflow on the user side is to wait with the declaration until N>1 particles are truly to be written.

seen first by @RevathiJambunathan & me in WarpX back-transformed particle diags .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions