printf("Eagle cooling.h u_old, physical u, comoving u, energy scale %.5e %.5e %.5e %.5e \n",u_old,hydro_get_physical_internal_energy(p,cosmo),hydro_get_comoving_internal_energy(p),cooling->internal_energy_scale);
if(i==eagle_max_iterations)printf("Problem with cooling finding upper bound\n");
//if (i == eagle_max_iterations) printf("Problem with cooling finding upper bound\n");
#ifdef SWIFT_DEBUG_CHECKS
//if (i < eagle_max_iterations) printf("Eagle cooling.h heating bound converged number of iterations, u_upper, u_lower, u, u_old, cooling %d %.8e %.8e %.8e %.8e %.8e\n", i, u_upper, u_lower, u, u_old,ratefact*eagle_cooling_rate(u_upper, p,cooling,cosmo,phys_const)*dt);
if(i==eagle_max_iterations){
printf("Problem with cooling finding upper bound, u_upper, u_lower, u, u_old, cooling %.5e %.5e %.5e %.5e %.5e\n",u_upper,u_lower,u,u_old,ratefact*eagle_cooling_rate(u_upper,p,cooling,cosmo,phys_const)*dt);
if(i==eagle_max_iterations)printf("Problem with cooling finding lower bound\n");
#ifdef SWIFT_DEBUG_CHECKS
//if (i < eagle_max_iterations) printf("Eagle cooling.h cooling bound converged number of iterations, u_upper, u_lower, u, u_old, cooling %d %.8e %.8e %.8e %.8e %.8e\n", i, u_upper, u_lower, u, u_old,ratefact*eagle_cooling_rate(u_lower, p,cooling,cosmo,phys_const)*dt);
if(i==eagle_max_iterations){
printf("Problem with cooling finding lower bound, u_upper, u_lower, u, u_old, cooling %.5e %.5e %.5e %.5e %.5e\n",u_upper,u_lower,u,u_old,ratefact*eagle_cooling_rate(u_lower,p,cooling,cosmo,phys_const)*dt);