mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
Upgraded to newer loadRamses interface. stackVelocityField may produce either 1d or 3d flow
This commit is contained in:
parent
2f1f1e0fd3
commit
27fc8ab2c8
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ SimuData *doLoadRamses(const char *basename, int baseid, int velAxis, bool goRed
|
|||
{
|
||||
SimuData *d, *outd;
|
||||
|
||||
d = loadRamsesSimu(basename, baseid, -1, 0);
|
||||
d = loadRamsesSimu(basename, baseid, -1, true, 0);
|
||||
outd = new SimuData;
|
||||
|
||||
outd->NumPart = d->TotalNumPart;
|
||||
|
@ -40,7 +40,7 @@ SimuData *doLoadRamses(const char *basename, int baseid, int velAxis, bool goRed
|
|||
|
||||
int curCpu = 0;
|
||||
cout << "loading cpu 0 " << endl;
|
||||
while (d = loadRamsesSimu(basename, baseid, curCpu, NEED_POSITION|NEED_VELOCITY|NEED_GADGET_ID))
|
||||
while (d = loadRamsesSimu(basename, baseid, curCpu, true, NEED_POSITION|NEED_VELOCITY|NEED_GADGET_ID))
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
for (int i = 0; i < d->NumPart; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue