Called function in photo_gen_matom and commented randwind_thermal_trapping