diff --git a/src/loadFlash.cpp b/src/loadFlash.cpp index 244fc14..d6846d3 100644 --- a/src/loadFlash.cpp +++ b/src/loadFlash.cpp @@ -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; n < data->NumPart; n++) { - data->Pos[i][n] = data->Pos[n][i] / kpc2cm; - data->Vel[i][n] = data->Vel[n][i] / km2cm; + data->Pos[i][n] = data->Pos[i][n] / kpc2cm; + data->Vel[i][n] = data->Vel[i][n] / km2cm; } }