large files now appear to be supported

This commit is contained in:
P.M. Sutter 2013-02-19 13:30:01 -06:00
parent acd9329b06
commit 7f020f15e5
2 changed files with 3 additions and 2 deletions

View file

@ -359,7 +359,7 @@ void saveBox(SimuData *&boxed, const std::string& outbox)
NcVar *v4 = f.add_var("unique_ids_lsb", ncLong, NumPart_dim);
NcVar *v5 = f.add_var("unique_ids_msb", ncLong, NumPart_dim);
nclong *tmp_int = new nclong(boxed->NumPart);
nclong *tmp_int = new nclong[boxed->NumPart];
for (long i = 0; i < boxed->NumPart; i++)
tmp_int[i] = (nclong)(((unsigned long)uniqueID[i]) & 0xffffffff);
v4->put(tmp_int, boxed->NumPart);