Skip to content

Commit b596097

Browse files
author
Martin D. Weinberg
committed
Looks like garbled merged; fix propsed
1 parent 87a0d35 commit b596097

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Component.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,10 @@ void Component::read_bodies_and_distribute_hdf5(void)
15951595
if (current != batch) {
15961596
throw std::runtime_error("Component ERROR: dataset <" + name + "> shorter than expected");
15971597
}
1598+
1599+
if (precision == 4) {
1600+
return FloatData(dataset.select({offset}, {current}).read<std::vector<float>>());
1601+
}
15981602
else if (precision == 8) {
15991603
return FloatData(dataset.select({offset}, {current}).read<std::vector<double>>());
16001604
}

0 commit comments

Comments
 (0)