As mentioned above the fuel is injected in synchronism with intake valve opening timing. This method is able to predict the generation of a shock wave, and is able to ascertain the generation of a shock wave through the measurement of the variation of the pressure in the combustion chamber after the generation of the shock wave.