File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1686,15 +1686,15 @@ void Component::read_bodies_and_distribute_hdf5(void)
16861686 w = read_dataset (" w" , offset, nbodies_table[n]);
16871687
16881688 // Read auxiliary integer fields
1689- aux_ints.resize (nbodies_table[n] );
1689+ aux_ints.resize (niattrib );
16901690 for (int j = 0 ; j < niattrib; ++j) {
16911691 std::string dset_name = " aux_int_" + std::to_string (j);
1692- aux_ints[j] = particles_group.getDataSet (dset_name).
1693- select ({offset}, {nbodies_table[n]}).read <std::vector<int >>();
1692+ aux_ints[j] = particles_group.getDataSet (dset_name)
1693+ . select ({offset}, {nbodies_table[n]}).read <std::vector<int >>();
16941694 }
16951695
16961696 // Read auxiliary float fields
1697- aux_floats.resize (nbodies_table[n] );
1697+ aux_floats.resize (ndattrib );
16981698 for (int j = 0 ; j < ndattrib; ++j) {
16991699 std::string dset_name = " aux_float_" + std::to_string (j);
17001700 aux_floats[j] = read_dataset (dset_name, offset, nbodies_table[n]);
You can’t perform that action at this time.
0 commit comments