Use proper conversion to Mpc/h

This commit is contained in:
Guilhem Lavaux 2011-06-06 11:00:03 -04:00
parent b5b44fdead
commit 89a87303f1

View File

@ -45,8 +45,8 @@ SimuData *CosmoTool::loadFlashMulti(const char *fname, int id, int loadflags)
h5_read_runtime_parameters(&file, &lbox, &npart, &hubble, &omegam, &omegalambda);
data->TotalNumPart = data->NumPart = npart;
data->BoxSize = lbox/kpc2cm;
data->Hubble = hubble/hubble2cm;
data->BoxSize = lbox/kpc2cm*data->Hubble;
data->Omega_M = omegam;
data->Omega_Lambda = omegalambda;