Commit 2f3eebcb authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

HDF5:multiple read on individual dataset returning 0 fixed

parent 9458ddbd
......@@ -460,6 +460,8 @@ bool CSnapshotGadgetH5In<T>::loadDataset(std::string dataset, std::vector<U> &da
}
ok = false;
}
} else {
ok=true;
}
return ok;
}
......
......@@ -91,7 +91,7 @@ template <class T> void displayInfo(bool display,int maxlines, std::string comp,
//if (comp == "gas") {
T * rho, * u, * hsml, * temp, * metal;
ok = uns->snapshot->getData(comp,"rho" ,&nbody,&rho );
if (ok && display) {
displayFormat(maxlines,"rho [1] = ",rho ,1,nbody, 3);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment