Allow 64 bits id in Gadget

This commit is contained in:
Guilhem Lavaux 2016-02-05 17:27:39 +01:00
parent f058ebed12
commit 0174cdc8d6
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ SimuData *CosmoTool::loadGadgetMulti(const char *fname, int id,
}
f->beginCheckpoint();
data->Id = new long[data->NumPart];
data->Id = new int64_t[data->NumPart];
if (data->Id == 0)
{
delete f;

View File

@ -78,7 +78,7 @@ namespace CosmoTool
ssize_t NumPart;
ssize_t TotalNumPart;
long *Id;
int64_t *Id;
float *Pos[3];
float *Vel[3];
float *Mass;