SDF: Do not bulk copy the header but instead copy its components

This commit is contained in:
Guilhem Lavaux 2013-03-05 08:42:34 -05:00
parent f7b4e5076b
commit 132d96adf5

View file

@ -123,7 +123,12 @@ public:
return 0;
d = new SimuData;
*d = *sdf_header;
d->BoxSize = sdf_header->BoxSize;
d->time = sdf_header->time;
d->Hubble = sdf_header->Hubble;
d->Omega_M = sdf_header->Omega_M;
d->Omega_Lambda = sdf_header->Omega_Lambda;
d->NumPart = getNumberInSplit(id);
int64_t numPartToLoad = getNumberInSplit(id);