Use proper conversion to Mpc/h
This commit is contained in:
parent
b5b44fdead
commit
89a87303f1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user