mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
GenerateMock working with Gadget snapshots
This commit is contained in:
parent
748f2c7107
commit
745b073ed6
2 changed files with 75 additions and 55 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue