mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
Fix in multidark loader: attributes must not be touched once created.
This commit is contained in:
parent
99f1b3888e
commit
a611d77c5d
1 changed files with 2 additions and 3 deletions
|
@ -61,9 +61,6 @@ public:
|
||||||
|
|
||||||
double tempData;
|
double tempData;
|
||||||
|
|
||||||
simu->new_attribute("uniqueID", uniqueID, delete_adaptor<long>);
|
|
||||||
simu->new_attribute("index", index, delete_adaptor<long>);
|
|
||||||
|
|
||||||
cout << "loading multidark particles" << endl;
|
cout << "loading multidark particles" << endl;
|
||||||
long actualNumPart = 0;
|
long actualNumPart = 0;
|
||||||
|
|
||||||
|
@ -96,6 +93,8 @@ public:
|
||||||
applyTransformations(simu);
|
applyTransformations(simu);
|
||||||
simu->NumPart = actualNumPart;
|
simu->NumPart = actualNumPart;
|
||||||
simu->TotalNumPart = actualNumPart;
|
simu->TotalNumPart = actualNumPart;
|
||||||
|
simu->new_attribute("uniqueID", uniqueID, delete_adaptor<long>);
|
||||||
|
simu->new_attribute("index", index, delete_adaptor<long>);
|
||||||
return simu;
|
return simu;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue