printf("discharge_max= %f \n" , discharge_max);