Cleaned unused variables and fixed a bug with PN (also tested PN against old version)

This commit is contained in:
Yohai Meiron 2020-04-07 22:40:54 -04:00
parent d9e3aea243
commit ebec3280f8
4 changed files with 41 additions and 51 deletions

2
io.cpp
View file

@ -81,7 +81,7 @@ void h5_read(const std::string file_name, int *step_num, int *N, double *t, doub
H5Gget_info(group_id, &object_info);
// Iterate over objects and add the number of each "step" group into a vector
std::vector<int> step_num_arr;
for (int i=0; i<object_info.nlinks; i++) {
for (unsigned int i=0; i<object_info.nlinks; i++) {
char name_cstr[256];
H5Gget_objname_by_idx(group_id, i, name_cstr, 256);
std::string name(name_cstr);