Allow 64 bits id in Gadget
This commit is contained in:
parent
f058ebed12
commit
0174cdc8d6
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue