Fixed position&velocity computation

This commit is contained in:
Guilhem Lavaux 2011-06-06 11:22:39 -04:00
parent 0fbf6789f1
commit 6e72a5661a

View File

@ -81,8 +81,8 @@ SimuData *CosmoTool::loadFlashMulti(const char *fname, int id, int loadflags)
for (int i = 0; i < 3; i++) {
for (int n = 0; i < data->NumPart; i++) {
data->Pos[n][i] = data->Pos[n][i] / kpc2cm;
data->Vel[n][i] = data->Vel[n][i] / km2cm;
data->Pos[i][n] = data->Pos[n][i] / kpc2cm;
data->Vel[i][n] = data->Vel[n][i] / km2cm;
}
}