mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Fix the size of the array to be pushed to netcdf
This commit is contained in:
parent
affb56ff48
commit
fcfad49e3c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue