GenerateMock working with Gadget snapshots

This commit is contained in:
Guilhem Lavaux 2012-11-23 14:31:46 -06:00
parent 748f2c7107
commit 745b073ed6
2 changed files with 75 additions and 55 deletions

View file

@ -63,6 +63,7 @@ public:
}
}
d->new_attribute("uniqueID", uniqueID, delete_adaptor<long>);
d->BoxSize *= unitMpc;
applyTransformations(d);
@ -99,7 +100,7 @@ SimulationLoader *gadgetLoader(const std::string& snapshot, double Mpc_unitLengt
assert(d != 0);
SimuData *header = d;
header->BoxSize *= Mpc_unitLength;
header->BoxSize /= Mpc_unitLength;
if (!singleFile)
{