Upgraded gadget load to support variable masses. Adjusted simple3DFilter for that too.

This commit is contained in:
Guilhem Lavaux 2014-07-07 17:35:56 +02:00
parent 7df2cdbe7c
commit 8809d6c255
5 changed files with 26 additions and 10 deletions

View file

@ -114,7 +114,7 @@ int main(int argc, char **argv)
rLimit2 = rLimit*rLimit;
hdf5_read_array(in_f, "particles", v1_data);
assert(v1_data.shape()[1] == 6);
assert(v1_data.shape()[1] == 7);
N1_points = v1_data.shape()[0];
@ -132,6 +132,7 @@ int main(int argc, char **argv)
allCells_1[i].coord[j] = v1_data[i][j];
for (int k = 0; k < 3; k++)
allCells_1[i].val.pValue.v[k] = v1_data[i][3+k];
allCells_1[i].val.pValue.mass = v1_data[i][6];
allCells_1[i].active = true;
allCells_1[i].val.weight = 0.0;