Fixed position&velocity computation
This commit is contained in:
parent
0fbf6789f1
commit
6e72a5661a
@ -81,8 +81,8 @@ SimuData *CosmoTool::loadFlashMulti(const char *fname, int id, int loadflags)
|
|||||||
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
for (int n = 0; i < data->NumPart; i++) {
|
for (int n = 0; i < data->NumPart; i++) {
|
||||||
data->Pos[n][i] = data->Pos[n][i] / kpc2cm;
|
data->Pos[i][n] = data->Pos[n][i] / kpc2cm;
|
||||||
data->Vel[n][i] = data->Vel[n][i] / km2cm;
|
data->Vel[i][n] = data->Vel[n][i] / km2cm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user