Initialize TotalNumPart
This commit is contained in:
parent
ed2d0c7841
commit
42c6f11034
@ -43,7 +43,7 @@ SimuData *CosmoTool::loadFlashMulti(const char *fname, int id, int loadflags)
|
|||||||
data->time = time;
|
data->time = time;
|
||||||
|
|
||||||
h5_read_runtime_parameters(&file, &lbox, &npart);
|
h5_read_runtime_parameters(&file, &lbox, &npart);
|
||||||
data->NumPart = npart;
|
data->TotalNumPart = data->NumPart = npart;
|
||||||
data->BoxSize = lbox/kpc2cm;
|
data->BoxSize = lbox/kpc2cm;
|
||||||
|
|
||||||
// particle data
|
// particle data
|
||||||
|
Loading…
Reference in New Issue
Block a user