Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/14_toml_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void write()
*/
E["z"].resetDataset({});

ds.extent = {10};
ds.extent = std::vector<openPMD::Extent::value_type>{10};

auto electrons = iteration.particles["e"];
electrons["position"]["x"].resetDataset(ds);
Expand Down
2 changes: 1 addition & 1 deletion include/openPMD/Iteration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class Iteration : public Attributable
*/
struct BeginStepStatus
{
using AvailableIterations_t = std::vector<uint64_t>;
using AvailableIterations_t = std::vector<IterationIndex_t>;

AdvanceStatus stepStatus{};
/*
Expand Down
2 changes: 1 addition & 1 deletion src/IO/HDF5/HDF5IOHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ void HDF5IOHandlerImpl::openDataset(
{
// Is a scalar. Since the openPMD-api frontend supports no scalar
// datasets, return the extent as {1}
*parameters.extent = {1};
*parameters.extent = std::vector<Extent::value_type>{1};
}
else
{
Expand Down
3 changes: 2 additions & 1 deletion src/Iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,8 @@ auto Iteration::beginStep(
else if (thisObject.has_value())
{
IterationIndex_t idx = series.indexOf(*thisObject)->first;
res.iterationsInOpenedStep = {idx};
res.iterationsInOpenedStep =
std::vector<Iteration::IterationIndex_t>{idx};
}
else
{
Expand Down
3 changes: 2 additions & 1 deletion src/snapshots/ContainerImpls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ auto StatefulSnapshotsContainer::operator[](key_type const &key)
{
case AdvanceStatus::OK:
++during.step_count;
during.available_iterations_in_step = {key};
during.available_iterations_in_step =
std::vector<Iteration::IterationIndex_t>{key};
break;
case AdvanceStatus::RANDOMACCESS:
during.available_iterations_in_step.emplace_back(key);
Expand Down
Loading