Fixed loop on particles

This commit is contained in:
Guilhem Lavaux 2011-06-06 11:23:29 -04:00
parent 6e72a5661a
commit e96264e82c

View File

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