We have now fixed the problem of energy related to the use of the new flags DYNCHRONIZE_NGB_TIMESTEP TIMESTEP_UPDATE_FOR_FEEDBACK IMPROVED_TIMESTEP_CRITERION_FORGAS
In cooling.c, CoolingForOne as been strongly
modified and can still be improved. Now all
tests concerning the Entropy and EntropyPred are done
directely in CoolingForOne.
In sigvel.c, we now correctely count the cooling
energy (in kickback), thanks to DtEnergyRad.
In timestep.c, now, when the cooling is used, all
checks concerning the Entropy and EntropyPred are done
directely in CoolingForOne. This avoid loss of energy.
cosmictime.c
We have added a new function that allows to convert
Cosmic time to Scaling factor and vice versa.
In order to use it in begrun.c, we have added:
init_full_cosmictime_table();
We also added a python interfaces for those functions.
We added a new python intrface for cooling
The new routines designed to use cooling hdf5 files are
now included in lambda_depraz.c and are activated with the flag
LAMBDA_DEPRAZ