Fix the size of the array to be pushed to netcdf

This commit is contained in:
Guilhem Lavaux 2021-02-25 14:00:20 +02:00
parent affb56ff48
commit fcfad49e3c

View file

@ -455,7 +455,7 @@ void saveBox(SimuData *&boxed, const std::string& outbox, generateMock_info& arg
v.putVar({0}, {size_t(boxed->NumPart)}, particle_id); v.putVar({0}, {size_t(boxed->NumPart)}, particle_id);
v2.putVar({0}, {size_t(boxed->NumPart)}, expansion_fac); v2.putVar({0}, {size_t(boxed->NumPart)}, expansion_fac);
v3.putVar({0}, {size_t(boxed->NumPart)}, snapshot_split); v3.putVar({0}, {size_t(num_snapshots)}, snapshot_split);
if (uniqueID != 0) if (uniqueID != 0)
{ {
NcVar v4 = f.addVar("unique_ids_lsb", ncInt, NumPart_dim); NcVar v4 = f.addVar("unique_ids_lsb", ncInt, NumPart_dim);